我的网页上有一个iframe视频列表.
<iframe width="520" height="360" src="http://www.youtube.com/embed/2muxrT5_a6E" frameborder="0" allowfullscreen></iframe>
<iframe width="520" height="360" src="http://www.youtube.com/embed/2muxrT5_a6E" frameborder="0" allowfullscreen></iframe>
<iframe width="520" height="360" src="http://www.youtube.com/embed/2muxrT5_a6E" frameborder="0" allowfullscreen></iframe>
<a href="#" class="close">Stop all videos</a>
Run Code Online (Sandbox Code Playgroud)
我需要点击链接停止所有播放iframe视频Stop all videos
.我怎样才能做到这一点?
我们在最新版本的Chrome(75)上有一个奇怪的错误,该错误已替换S
为S
console.log(
'AZERTYUIOPQSDFGHJKLMWXCVBN'.replace(/[\u00A0-\u9999<>&]/gim, char => `&#${char.charCodeAt(0)};`)
)
Run Code Online (Sandbox Code Playgroud)
//AZERTYUIOPQSDFGHJKLMWXCVBN
有人知道代码是问题还是Chrome是问题?
出于安全原因,我需要一个特定的注册表,但在package-lock.json
我仍然保留https://registry.npmjs.org/
有什么办法可以强制吗?
我的问题我在页面中有上述表格.我想使用jquery验证引擎验证表单.您可以告诉我如何验证它以及要包含的文件.现在,我已经将jquery验证引擎包含在我的脑海中.我只是想知道如何触发验证引擎并显示文本字段的错误消息onblur ..非常感谢提前.请在下面找到我的代码:
<script src="../js/jquery-1.6.min.js" type="text/javascript"></script>
<script src="scripts/jquery.validationEngine-en.js" type="text/javascript" charset="utf-8"></script>
<script src="scripts/jquery.validationEngine.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">
jQuery(document).ready(function(){
// binds form submission and fields to the validation engine
$('#myForm').validationEngine('validate');
});
</script>
<form class="container" id="myForm" method="post" action="">
<div>
<span>Field is required : </span>
<label for="Firstname">Firstname</label>
<input type="text" class="validate[required] text-input" id="name" name="Firstname"/>
</div>
<div>
<span>Field is required : </span>
<label for="name">middlename</label>
<input type="text" id="name" name="middlename" class="validate[required] text-input"/>
</div>
<div>
<span>Field is required : </span>
<label for="name">lastname</label>
<input type="text" id="name" name="lastname" class="validate[required] text-input"/>
</div>
</form>
Run Code Online (Sandbox Code Playgroud)