摘要: /*** 删除左右两端的空格*/String.prototype.trim=function(){return this.replace(/(^\s*)|(\s*$)/g, '');} 调用方式: var searchValue=$("#searchValue").val(); if(null != 阅读全文
posted @ 2018-03-14 15:25 Huangmoumou 阅读(1311) 评论(0) 推荐(0) 编辑
摘要: 引用jquery文件,如<script type="text/javascript" src="jquery-1.8.3.min.js"></script> Date.prototype.Format = function (fmt) { var o = { "M+": this.getMonth( 阅读全文
posted @ 2018-03-14 15:21 Huangmoumou 阅读(20366) 评论(0) 推荐(2) 编辑
摘要: 这个插件既可以作为双日历也可以作为单日历插件(jquery的插件在jquery插件库中http://www.jq22.com/下载很方便,在CSDN下载真麻烦) 引用 <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"><lin 阅读全文
posted @ 2018-03-14 15:04 Huangmoumou 阅读(1972) 评论(0) 推荐(0) 编辑