摘要:
// // trim // let str = ' iloveyou '; // console.log(str); // // 清除 左侧空格 // console.log(str.trimStart()); // // 清除 右侧空格 // console.log(str.trimEnd()); 阅读全文
posted @ 2021-05-21 23:13
13522679763-任国强
阅读(68)
评论(0)
推荐(0)
摘要:
// function connect({host,port,username,password}){ // console.log(host); // console.log(port); // console.log(username); // console.log(password); // 阅读全文
posted @ 2021-05-21 22:24
13522679763-任国强
阅读(79)
评论(0)
推荐(0)
摘要:
const school = { name:"中国", cityies:["北京","上海","深圳"], area:["朝阳区","黄埔","东城"] } // 获取对象所有的键 // console.log(Object.keys(school)); // (3) ["name", "cityi 阅读全文
posted @ 2021-05-21 22:13
13522679763-任国强
阅读(58)
评论(0)
推荐(0)
摘要:
// 动态添加js function appendJQCDN(src) { var head = document.head || document.getElementsByTagName('head')[0]; if(src.indexOf("js")== -1){ //css var styl 阅读全文
posted @ 2021-05-21 12:23
13522679763-任国强
阅读(97)
评论(0)
推荐(0)
摘要:
// 添加css document.getElementsByTagName('head')[0].innerHTML += '<link href="https://cdn.bootcdn.net/ajax/libs/fancybox/3.5.7/jquery.fancybox.min.css" 阅读全文
posted @ 2021-05-21 12:22
13522679763-任国强
阅读(116)
评论(0)
推荐(0)

浙公网安备 33010602011771号