js
超越大风车
这个作者很懒,什么都没留下…
展开
-
jq替换图片
jq替换图片$("#img").attr("src", "1.jpg");<img id="img" alt="" src="">原创 2020-04-28 15:05:52 · 706 阅读 · 0 评论 -
html页面跳转,在跳转页面获得传值
html页面跳转,在跳转页面获得传值打开新窗口跳转本页面跳转在跳转页面获得传值带参数跳转取值打开新窗口跳转window.open("index.html");本页面跳转window.location.href = "index.html";document.location = "index.html";在跳转页面获得传值带参数跳转window.open("index.html...原创 2020-04-28 14:56:27 · 519 阅读 · 0 评论 -
js使用键盘回车键(Enter)操作
js使用键盘回车键(Enter)操作<script type="text/javascript"> window.document.onkeydown = disableRefresh; function disableRefresh(evt){ evt = (evt) ? evt : window.event; if (evt.keyCode) { if(evt....原创 2020-04-21 12:02:44 · 4556 阅读 · 0 评论