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
あなたのコードは次のようになります:
キャッチされていない TypeError: オブジェクト # にはメソッド 'play' がありません
DOM オブジェクトを取得するには、以下のget()に注意してください。
$(function () { $('input').click(function () { $('video').get(0).play(); }); });