Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
为什么这段代码不替换对象和嵌入?
$(".watch-on-mobile").click(function () { $('object' && 'embed').replaceWith($('.video-js')); $('.video-js').css("display", "block") });
提前致谢!
您不能发明一种语法并希望库猜测。
使用多重选择器:
$('object,embed').replaceWith($('.video-js'));