列表

详情


FED8. 视频媒体标签属性

描述

请写出具有当视频的媒体数据加载期间发生错误时执行某个方法事件的视频媒体标签。

原站题解

HTML/CSS/JavaScript 解法, 执行用时: 1681ms, 内存消耗: 77812KB, 提交时间: 2022-02-09

{"css":"","js":"","html":"<!-- 补全代码 -->\n<video controls width=\"250\" onerror=\"myFunction()\">\n    <source src=\"/\">\n    <source src=\"/>\n    Sorry, your browser doesn't support embedded videos.\n</video>","libs":[]}

HTML/CSS/JavaScript 解法, 执行用时: 1681ms, 内存消耗: 77820KB, 提交时间: 2022-02-08

{"css":"","js":"","html":"<!-- 补全代码 --><video controls onerror=\"a()\"></video>","libs":[]}

HTML/CSS/JavaScript 解法, 执行用时: 1686ms, 内存消耗: 77800KB, 提交时间: 2022-02-08

{"css":"","js":"","html":"<!-- 补全代码 -->\n<video controls onerror=\"a()\"></video>","libs":[]}

HTML/CSS/JavaScript 解法, 执行用时: 1687ms, 内存消耗: 77772KB, 提交时间: 2022-02-07

{"css":"","js":"","html":"<video onerror=\"videoError()\" controls></video>","libs":[]}

HTML/CSS/JavaScript 解法, 执行用时: 1687ms, 内存消耗: 77812KB, 提交时间: 2022-02-09

{"css":"","js":"","html":"<!-- 补全代码 -->\n<script>\n    var vi = document.getElementById('test');\n    vi.onstalled = function(){\n        alert('bu ke bo fan')\n    }\n</script>\n<video id='test' width='320' controls onerror={alert('test')}>\n</video>","libs":[]}

上一题