随笔分类 -  js

摘要:function FormatJSON(Str) { try{ Str = Str.replace(/\\/g, ""); Str = Str.replace(/(^\"{1})|(\"{1}$)/g, ""); Str = Str.replace(/(^(null\(){1})|((\)){1}$ 阅读全文
posted @ 2016-06-28 14:49 溜溜达达 阅读(386) 评论(0) 推荐(0)
摘要:var newtemp=[ { title: '北京市', money: '11' }, { title: '天津市', money: '11' }, { title: '山东省', money: '11'}, { title: '河北省', money: '11'}, { ... 阅读全文
posted @ 2015-11-02 15:35 溜溜达达 阅读(213) 评论(0) 推荐(0)
摘要:之前用uuid 因为太长改用16位因此在网上找到一下这种做法,年月日截取 时间戳 在加随机数 生成一个订单;//获取年份var date=['J','F','C','D','E','B','H','I','A'];//console.log((new Date().getTime()).toStri... 阅读全文
posted @ 2015-10-14 15:18 溜溜达达 阅读(552) 评论(0) 推荐(0)
摘要:html ------------------------------- 上传| 取消 js方法---------------------------------initUploadify('a... 阅读全文
posted @ 2015-03-04 15:00 溜溜达达 阅读(377) 评论(0) 推荐(0)
摘要:html ul li 小圆点 background:url('../images/ul.png')no-repeat0px;padding-left:10px;img 位置 position:relative;z-index:2;top:-2px; 阅读全文
posted @ 2015-01-04 16:20 溜溜达达 阅读(116) 评论(0) 推荐(0)
摘要:在网上搜了很多资料都没有搞定,一般都有以下几种说法:方法1:在后台中先获得字符串的iso-8859-1编码形式数组,再使用此数组实例一个UTF-8编码形式String类型字符串.页面提交的url为:leavesp?work=部门主管审批后台处理:String inStr=request.getPar... 阅读全文
posted @ 2014-12-31 14:20 溜溜达达 阅读(650) 评论(0) 推荐(0)
摘要:table{ 2 width:200px; 3 table-layout: fixed; 4 } 5 .autocut{ 6 overflow:hidden; 7 white-space:nowrap; 8 text-overflow:ellipsis; 9... 阅读全文
posted @ 2014-12-18 16:29 溜溜达达 阅读(1038) 评论(0) 推荐(0)
摘要:vard = newDate();varyear = d.getFullYear();varmonth = d.getMonth() + 1;vardate = d.getDate();varday = d.getDay();varHours=d.getHours(); //获取当前小时数(0-23... 阅读全文
posted @ 2014-09-18 10:27 溜溜达达 阅读(173) 评论(0) 推荐(0)