摘要: Web组成 ​ 结构(HTML)、表现(css)、行为(javaScript) ​ W3c:万维网联盟 ​ Ecma:欧洲电脑网商联合 相关概念 ​ HTML:超文本标记语言 ​ XHTML:可扩展的抄本文本标记语言 ​ HTML5:HTML的第五次重大修改 命名规范 ​ 小写英文字母、数字、下划线 阅读全文
posted @ 2020-10-26 10:32 清风~~徐来 阅读(199) 评论(0) 推荐(0) 编辑
摘要: npm install vue-amap -D 在main.js import VueAMap from "vue-amap"; Vue.use(VueAMap); VueAMap.initAMapApiLoader({ key: "高德地图的key", // 这里写你申请的高德地图的key plu 阅读全文
posted @ 2023-11-09 11:35 清风~~徐来 阅读(178) 评论(0) 推荐(0) 编辑
摘要: == 比较规则 ```js let a = { n:0, valueOf: function(){ return Math.pow(2,this.n++) } } if(a == 1 && a==2 && a==4 && a==8){ console.log('成功了'); }else { cons 阅读全文
posted @ 2023-05-19 14:57 清风~~徐来 阅读(31) 评论(0) 推荐(0) 编辑
摘要: const arr1 = [1, 2, 3, 4, 5]; const arr2 = [1, 2, 3, 4, 5, 8, 6, 4, 21, 3456, 78, 412]; /** @name 数组求和(不能使用现有数组api) @param {Array} arr @return {number 阅读全文
posted @ 2022-07-30 15:56 清风~~徐来 阅读(82) 评论(0) 推荐(0) 编辑
摘要: function filterSize(size) { if (!size) return '-' if (size < pow1024(1)) return size + ' B' if (size < pow1024(2)) return (size / pow1024(1)).toFixed( 阅读全文
posted @ 2022-07-28 11:50 清风~~徐来 阅读(51) 评论(0) 推荐(0) 编辑
摘要: // 订阅发布模式 type BusClass = { emit: (name: string) => void; on: (name: string, callback: Function) => void; off: (name: string) => void; once: (name: st 阅读全文
posted @ 2022-06-23 15:49 清风~~徐来 阅读(62) 评论(0) 推荐(0) 编辑
摘要: 手动搭建webpcak5x +vue3.2.x + element-plus 第一步新建文件夹 test 初始化package.json mkdir test cd test npm init -y 第二步 新建index.html <!DOCTYPE html> <html lang="en"> 阅读全文
posted @ 2022-06-20 17:58 清风~~徐来 阅读(144) 评论(0) 推荐(0) 编辑
摘要: 当前分支修改提交到其他分支 **//步骤1:在当前的分支上的修改暂存起来(当前分支dev-cwl-pmdt-v2.0) git stash //步骤2:暂存修改后,切换到其他分支(当前分支dev-cwl-pmdt-v2.0) git checkout dev-main-pmdt-v2.0 //步骤3 阅读全文
posted @ 2022-06-20 10:14 清风~~徐来 阅读(1898) 评论(0) 推荐(1) 编辑
摘要: toString() // 数字进制转换 console.log((1).toString()) // 1 console.log((10).toString(2)) // 1010 console.log((10).toString(4)) // 22 console.log((10).toStr 阅读全文
posted @ 2022-06-13 14:39 清风~~徐来 阅读(49) 评论(0) 推荐(0) 编辑
摘要: axios // 在vue中封装axios // yarn add axios qs // http.js import axios from 'axios'; import qs from 'qs' /* 根据环境变量配置请求根路径 */ switch(process.env.NODE_ENV){ 阅读全文
posted @ 2022-05-14 17:46 清风~~徐来 阅读(114) 评论(0) 推荐(0) 编辑
摘要: v-model 与 插值表达式 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewp 阅读全文
posted @ 2022-03-15 16:09 清风~~徐来 阅读(70) 评论(0) 推荐(0) 编辑