11 2017 档案

工具类 ,无需再存localstorage
摘要:/** * 工具类 */var Utils = { /** * 获得查询参数 */ getQueryString: function(name) { var search = location.search; if(!search) { return null; } var reg = new Re 阅读全文

posted @ 2017-11-28 14:37 Monroe_Yu 阅读(287) 评论(0) 推荐(0) 编辑

jquery点击复制
摘要:/*点击复制*/ $(".copycode").delegate("img","click",function(){ var password = $(this).parent().parent().find("#password"); password.select(); // 选择对象 docu 阅读全文

posted @ 2017-11-24 18:19 Monroe_Yu 阅读(365) 评论(0) 推荐(0) 编辑

js 将base64转为图片
摘要:var imgurl = response.data; $(".codeimg").attr('src','data:image/png;base64,'+imgurl); var validate = response.validate; 阅读全文

posted @ 2017-11-20 12:24 Monroe_Yu 阅读(1531) 评论(0) 推荐(0) 编辑

vue安装
摘要:http://blog.csdn.net/wisewrong/article/details/55212684 阅读全文

posted @ 2017-11-16 14:56 Monroe_Yu 阅读(116) 评论(0) 推荐(0) 编辑

js取两位小数点
摘要:var money = one.money; var tmoney = money.substr(0,money.indexOf(".")+3); 阅读全文

posted @ 2017-11-11 11:10 Monroe_Yu 阅读(227) 评论(0) 推荐(0) 编辑