05 2021 档案

摘要:/* jquery版本随意 *//* html2canvas 0.5.0-beta3 <http://html2canvas.hertzen.com> *//* http://www.phpied.com/rgb-color-parser-in-javascript/ *//* http://dem 阅读全文
posted @ 2021-05-26 17:46 莣ㄋ噯 阅读(260) 评论(0) 推荐(1) 编辑
摘要:let TILE_SIZE = 256;/* 传入经纬度和地图层级获取像素坐标 */let project = (lat, lng, zoom) => { let siny = Math.sin(lat * Math.PI / 180); siny = Math.min(Math.max(siny, 阅读全文
posted @ 2021-05-26 17:30 莣ㄋ噯 阅读(124) 评论(0) 推荐(0) 编辑
摘要:vue3.0 报错Cannot find module ‘vue-loader-v16/package.json‘的解决方案用cnpm -- i 代替cnpm install 阅读全文
posted @ 2021-05-17 14:13 莣ㄋ噯 阅读(80) 评论(0) 推荐(0) 编辑
摘要:<template> <div class="calendar"> <div class="calendar-switch"> <div class="icon" @click="lowerClick()"> &lt; </div> <div class="title"> {{ year }}-{{ 阅读全文
posted @ 2021-05-14 15:21 莣ㄋ噯 阅读(691) 评论(2) 推荐(0) 编辑
摘要:region和endregion里面的代码收缩成一行 //region //endregion 阅读全文
posted @ 2021-05-13 10:57 莣ㄋ噯 阅读(429) 评论(0) 推荐(0) 编辑
摘要:reduce //计算数组内值得和 filter //对数组进行筛选 let index = arr.map(item => item.name).indexOf(name);//获取数组内数值为某个的时候的下标值 阅读全文
posted @ 2021-05-10 10:47 莣ㄋ噯 阅读(76) 评论(0) 推荐(0) 编辑
摘要:pointer-events //使其及其子元素不会被鼠标选中 阅读全文
posted @ 2021-05-10 10:45 莣ㄋ噯 阅读(32) 评论(0) 推荐(0) 编辑
摘要:{ "parserOptions": { "ecmaVersion": 6, "sourceType": "module", "ecmaFeatures": { "jsx": true } }, "rules": { "indent": ["error", 2], "linebreak-style" 阅读全文
posted @ 2021-05-08 09:34 莣ㄋ噯 阅读(57) 评论(0) 推荐(0) 编辑
摘要:str.split("");//把字符串转成数组 arr.reverse();//把数组反转 arr.join("");//把数组转成字符串 阅读全文
posted @ 2021-05-07 11:46 莣ㄋ噯 阅读(25) 评论(0) 推荐(0) 编辑
摘要:全局下载最新版本的vue/cli npm i -g @vue/cli 创建vue文件 vue create name 阅读全文
posted @ 2021-05-07 11:43 莣ㄋ噯 阅读(27) 评论(0) 推荐(0) 编辑
摘要:查看nom源地址npm get registry 阅读全文
posted @ 2021-05-07 11:32 莣ㄋ噯 阅读(29) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示