上一页 1 ··· 27 28 29 30 31 32 33 34 35 ··· 61 下一页
摘要: <script> function main(config){ // const dbHost = config && config.db && config.db.host; const dbHost =config?.db?.host; console.log(dbHost); // 192.1 阅读全文
posted @ 2021-05-24 19:33 13522679763-任国强 阅读(51) 评论(0) 推荐(0)
摘要: <template> <div> <!-- <h3>绑定监听</h3> <button @click="one">one</button> <button @click="two('Eric')">two</button> <button @click="three('Eric-one',$even 阅读全文
posted @ 2021-05-24 15:31 13522679763-任国强 阅读(42) 评论(0) 推荐(0)
摘要: <template> <div > <!-- v-text 和 v-html --> <p v-text="content"></p> <p>{{content}},喜欢it</p> <p>{{site}}</p> <p v-html="site"></p> <p v-pre>{{content}} 阅读全文
posted @ 2021-05-24 14:44 13522679763-任国强 阅读(95) 评论(0) 推荐(0)
摘要: // // trim // let str = ' iloveyou '; // console.log(str); // // 清除 左侧空格 // console.log(str.trimStart()); // // 清除 右侧空格 // console.log(str.trimEnd()); 阅读全文
posted @ 2021-05-21 23:13 13522679763-任国强 阅读(65) 评论(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-任国强 阅读(76) 评论(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-任国强 阅读(112) 评论(0) 推荐(0)
摘要: // 1 Array.prototype.includes 用来检测 数组中是否包含某个元素 返回 布尔型值 const mingzhu = ['西游记','红楼梦','三国演义','水浒传']; // 判断 console.log(mingzhu.includes('西游记')); // true 阅读全文
posted @ 2021-05-19 21:33 13522679763-任国强 阅读(86) 评论(0) 推荐(0)
摘要: // 1 Object.is 判断两个值是否完全相等 // console.log(Object.is(120,121)); // false // console.log(Object.is(120,120)); // true // console.log(Object.is(NaN,NaN)) 阅读全文
posted @ 2021-05-18 23:21 13522679763-任国强 阅读(65) 评论(0) 推荐(0)
上一页 1 ··· 27 28 29 30 31 32 33 34 35 ··· 61 下一页