摘要: let hasObj = false; for (let i in data.imgPathInfo){ hasObj = true; break; } if(!hasObj){ _this.$message.error('图片路径对象为空!'); } 获取number类型数字长度:n.toStri 阅读全文
posted @ 2017-07-05 11:56 lijun8637 阅读(837) 评论(0) 推荐(0) 编辑
摘要: let formData = new FormData($('#uploadFile')[0]); iframes.window.postMessage(formData,"*") //serialize() 传输内容过大: Uncaught DOMException: Failed to exec 阅读全文
posted @ 2017-07-04 19:25 lijun8637 阅读(597) 评论(0) 推荐(0) 编辑
摘要: //宽度 <div style="border:1px solid red"> <div style="float: left;background:#00f;width:100px;_margin-right:-3px">ggds</div> <div style="float: right;ba 阅读全文
posted @ 2017-06-30 11:06 lijun8637 阅读(136) 评论(0) 推荐(0) 编辑
摘要: //IE6、IE7都无效<div style="display:table-cell;vertical-align:middle; text-align:center;width:150px;height:150px;border:1px solid red"> <div style="displa 阅读全文
posted @ 2017-06-30 10:49 lijun8637 阅读(170) 评论(0) 推荐(0) 编辑
摘要: var timestamp = new Date().getTime().toString();var pzKeyArr =[{name:"walletId",value:walletId},{name:"nonceStr",value:timestamp},{name:"money",value: 阅读全文
posted @ 2017-06-28 15:39 lijun8637 阅读(2363) 评论(0) 推荐(0) 编辑
摘要: oc-js 互通消息的桥梁函数 阅读全文
posted @ 2017-06-28 15:33 lijun8637 阅读(603) 评论(0) 推荐(0) 编辑
摘要: (function ($) { $.getUrlParam = function (name) { var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); var r = window.location.search.substr(1).mat 阅读全文
posted @ 2017-06-28 15:11 lijun8637 阅读(793) 评论(0) 推荐(0) 编辑
摘要: function getTimes(timeStamp){ //timeStamp 时间戳 if(/\d{11,13}/.test(timeStamp)){ let date = new Date(timeStamp); let year = date.getFullYear() ; let mon 阅读全文
posted @ 2017-06-28 14:59 lijun8637 阅读(264) 评论(0) 推荐(0) 编辑
摘要: function getExplorer(){ var userAgent = navigator.userAgent; var isOpera = userAgent.indexOf("Opera") > -1; if (isOpera) { return "Opera" }; if (userA 阅读全文
posted @ 2017-06-28 14:55 lijun8637 阅读(258) 评论(0) 推荐(0) 编辑