jq添加属性时,发现添加wmode属性时执行不成功,请问一下这个是为什么?
IE动态添加wmode没有效果。。不会更改wmode。。你可以判断下是IE,replaceWith更新embed对象就行
if(document.all)$('embed').replaceWith(function(){return this.outerHTML.replace('wmode','').replace(/<embed/i,'<embed wmode=transparent')})