wrote a custom video playback control that you want to call out on the mobile by clicking on the video. But the video tag does not respond to this click event.
how do ordinary video players call out playback controls?
wrote a custom video playback control that you want to call out on the mobile by clicking on the video. But the video tag does not respond to this click event.
how do ordinary video players call out playback controls?
delegate to the parent event
if it is a playback control on the page, it will certainly not respond. Regardless of iOS or Android, the Video tag will bring up the native player interface of the system, which is not under your control. Of course, if you do App, you can do it yourself.
There is an input input box in the page. If the other party enters < H2 > Hello < H2 > , it will be automatically converted to large bold text. how to output strings directly from p.content without parsing H2 tags into large bold? ${value} `; th...
the requirement is: ajax I can t write well no matter how I write it. Look at the Internet, most of them add an id, to the form tag and then new FormData ($( - sharpid ) [0]), and then submit it at once, so my three fields are useless, aren t...
first of all, the source code is like this input(v-model="num" @keyup="search") -sharp .prompt(v-show="lists!=0") -sharp .list(v-for="(i,n) in lists" :key="n") {{i.name}} how vue listens to let the...
console.time () and console.timeEnd () can print the execution time of the program. (function(){ console.time( index ); var div = document.getElementById( div ); div.onclick = function(){ alert( 123 ); }; console.timeE...
Code: ready.touch = function (elem, fn) { elem.addEventListener( click , function (e) { fn.call(this, e); }, false); }; question: what is the purpose of this here? Who does it point to when the click event is ...
requirements: the page has a large image as the background, which requires that no matter how the browser size changes, the background image will always be in the same proportion (will not be deformed), and will always be covered with the entire browser...
currently encapsulated table plug-ins are as follows: (function ($) { function Table() { this.config = { } }; Table.prototype = { table rend: function (config) { return this; ...
The scene appears in a rich text editor. I want to select a piece of text, and then a tooltips appears above the selected text . it is not clear which method should be used to get the start and end points of a selection (selection) relative to the offs...
center[0].onmousedown = function () { docMove(); document.onmouseup = function () { document.onmousemove = null; document.onmouseup = null; }; }; function docMove() { ...
For the webpack+vue project, I want to use the "runtime version " of vue, but I also want to use the template feature. The official website says that using vue-loader is fine. Webpack I configured vue-loader, to use the "runtime " version, which will ...
question: how can other event listeners or functions get this Dom state after an event listener method changes the Dom state (such as hiding)? usage scenarios: jquery, vue ...
Please see the preview . When you scroll to the upper boundary of the page to cover the half of the barrage, you will see that the barrage slowly squeezes the screen down again, and in the process, the page keeps bouncing. For demo, please see here ...
css2.2 document stipulates: for elements whose position is static or relative , containing block is content box of the most recent ancestor element block container box (except margin , border , padding ); can be obtained: the contain...
JavaScript Node ...
the elements of the embed tag selected on the page are copied and cannot be pasted. Does anyone know why http: iwebad.com video 3440. is that the flash of this page cannot be copied ...
the elements of the embed tag selected on the page are copied and cannot be pasted. Does anyone know why http: iwebad.com video 3440. is that the flash of this page cannot be copied ...
document.getElementsByClassName("current")[0].onclick = function () { 1 alert("abv"); for(var i = 0; i< listShow; iPP ) { document.getElementsByClassName("sojob-item-ma...