<script src="jQuery.js></script>
<script>
var a = document.getElementByTagName("audio");
a.controls = true;
</script>
<audio src ="one.mp3"></audio>
<audio src ="two.mp3"></audio>
<audio src ="three.mp3"></audio>
<audio src ="four.mp3"></audio>
<audio src ="five.mp3"></audio>
控件仍然没有出现在音频中?我有二十个这样的元素
答案 0 :(得分:0)
您可以使用document.ready或window.load来执行此操作
@Override
public void onBindViewHolder(PlantViewHolder holder, int position) {
PlantViewHolder.plantName.setText(plants.get(position).getSpecie());
PlantViewHolder.plantCheck.setText("Are you sure this is the plant?");
PlantViewHolder.personPhoto.setImageResource(plants.get(position).photoId);
}