const $text = $('.ck-video').children('video') // jQuery对象
const text = $text[0] // DOM对象
text.setAttribute('codec', 'software') // 赋值
Jquery对子元素在标签上加属性
最新推荐文章于 2024-07-23 11:32:13 发布
const $text = $('.ck-video').children('video') // jQuery对象
const text = $text[0] // DOM对象
text.setAttribute('codec', 'software') // 赋值