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