上一页 1 ··· 3 4 5 6 7 8 9 10 下一页
摘要: · call、apply、bind都是用来改变this指向的方法 · 这三个函数的第一个参数都是 this 的指向对象,第二个参数差别就来了: - call: 字符串,逗号隔开 - apply: 数组 - bind: 字符串,逗号隔开,但会返回一个新的函数,重新调用这个函数才会触发 阅读全文
posted @ 2021-02-18 16:53 zoo-x 阅读(19) 评论(0) 推荐(0) 编辑
摘要: 多说无益,代码示意 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" c 阅读全文
posted @ 2021-02-18 16:44 zoo-x 阅读(33) 评论(0) 推荐(0) 编辑
摘要: 基本使用步骤 1.引入 <script type="text/javascript" src="https://webapi.amap.com/maps?v=1.4.15&key=你的key"></script> 2.创建并初始化实例对象 <div id="container"></div> con 阅读全文
posted @ 2021-02-14 11:55 zoo-x 阅读(1204) 评论(0) 推荐(0) 编辑
摘要: 1.首先在配置文件vue.config.js里修改: devServer:{ port:80,// >> 生产环境的域名端口号,一般默认为80 host:'www.baidu.com' // >> 映射生产环境的域名 } 2.其次,在初始化jssdk的地方修改: wx.config({ debug: 阅读全文
posted @ 2021-02-07 13:44 zoo-x 阅读(2652) 评论(0) 推荐(0) 编辑
摘要: 使用的是dart-sass,在使用vue-cli脚手架搭建项目时,选用css预处理器sass(dart-sass,node-sass),dart-sass不支持这种写法了,node-sass支持,而我们使用dart-sass就不支持/deep/这种写法 可以使用::v-deep来修改 阅读全文
posted @ 2021-01-27 16:08 zoo-x 阅读(4595) 评论(0) 推荐(0) 编辑
摘要: reduce(callback(a,b,c,d),initValue)有两个参数 1.callback函数 callback有四个参数 (1)累计器,默认为数组第一项 (2)当前值 (3)当前值索引 (4)原数组 2.initValue:累计器的初始值 例: const arr = [1,2,3] 阅读全文
posted @ 2020-12-17 10:12 zoo-x 阅读(95) 评论(0) 推荐(0) 编辑
摘要: 当padding-top、padding-bottom、margin-top、margin-bottom属性设置为百分比时,参考对象都是父级元素的宽度 阅读全文
posted @ 2020-12-17 09:57 zoo-x 阅读(167) 评论(0) 推荐(0) 编辑
摘要: 很简单,因为图片url里含有空格或者是中文字符时,图片不能显示 阅读全文
posted @ 2020-12-16 15:25 zoo-x 阅读(1339) 评论(0) 推荐(0) 编辑
摘要: git的简单使用 安装git的步骤在这里就不说了 选择提交文件夹,右键单击git bash here 1.创建本地git仓库 git init 当前文件夹下回出现后缀名为 .git的隐藏文件 2.新建文件,将本地文件添加到暂存区 查看当前仓库文件的状态: git status 将本地文件添加到暂存区 阅读全文
posted @ 2019-11-04 10:54 zoo-x 阅读(175) 评论(0) 推荐(0) 编辑
摘要: 规范里说: Authors specify the style and location of generated content with the :before and :after pseudo-elements. As their names indicate, the :before an 阅读全文
posted @ 2019-11-03 00:32 zoo-x 阅读(1908) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 下一页