摘要: //css去掉a标签点击后的虚线框 -webkit-tap-highlight-color:rgba(255,0,0,0); //input(IOS) 闪烁问题 input{-webkit-tap-highlight-color:rgba(0,0,0,0)} //禁止input键盘弹出 docume 阅读全文
posted @ 2017-08-02 19:54 忘忧人 阅读(230) 评论(0) 推荐(0)
摘要: HTML文件里加入下面一段代码(下载地址:http://www.embeddedjs.com/): <script type="text/javascript" src="ejs_production.js"></script> Syntax 阅读全文
posted @ 2017-07-14 01:41 忘忧人 阅读(189) 评论(0) 推荐(0)
摘要: //获取地址栏参数 function getArgs(){ var args = {}; var match = null; var search = decodeURIComponent(window.search.substring(1)); var reg = /(?:([^&]+)=([^& 阅读全文
posted @ 2016-10-08 18:36 忘忧人 阅读(145) 评论(0) 推荐(0)
摘要: (function($) { $.fn.extend({ //myField 对象元素 myValue 插入值 insertAtCursor: function(myField,myValue) { //IE下 if (document.selection) { myField.focus();// 阅读全文
posted @ 2016-10-08 18:35 忘忧人 阅读(333) 评论(0) 推荐(0)
摘要: <button type="button" id="sendMsg" class="sui-btn btn-success" style="height:32px;" onclick="time()">获取验证码</button> //倒计时 var wait = 30; function time 阅读全文
posted @ 2016-10-08 18:33 忘忧人 阅读(154) 评论(0) 推荐(0)
摘要: <!doctype html><html><head> <meta charset="utf-8"> <title>指定时间倒计时</title></head><body><DIV id="CountMsg" class="HotDate"> <span id="t_d">00天</span> <s 阅读全文
posted @ 2016-10-08 18:27 忘忧人 阅读(277) 评论(0) 推荐(0)