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.
我认为代码是不言自明的,按钮不起作用,我做错了什么?
使用铬。
http://jsbin.com/ugoni3/edit
您的代码给出:
未捕获的类型错误:对象 # 没有方法“播放”
请注意下面的get()以获取 DOM 对象:
$(function () { $('input').click(function () { $('video').get(0).play(); }); });