09 2022 档案

Vue.use
摘要:Vue.use(plugin: Object|Function) 当plugin是Object时,会找plugin中的install方法(plugin对象中必须提供install方法),再自动传入参数Vue,并执行该install方法 当plugin是Function时,会自动传入参数Vue,并执行 阅读全文

posted @ 2022-09-27 21:42 In-6026 阅读(48) 评论(0) 推荐(0)

htmlWebpackPlugin config
摘要:|name|describe|type|default| | | | | | |favicon|html图标|string|''| |title|创建的html的title|string|'Webpack App'| |meta|meta标签|{object}|{}| |base|配置base标签| 阅读全文

posted @ 2022-09-24 13:48 In-6026 阅读(86) 评论(0) 推荐(0)

plugins
摘要:各个plugin的作用 ##个别不直观的plugin的解释: ###banner 用来添加注释,标注作品版权之类的(横幅) 但是和uglifyjsPlugin‘冲突’,因为uglifyjsPlugin会把所有注释都清理掉 阅读全文

posted @ 2022-09-24 13:48 In-6026 阅读(218) 评论(0) 推荐(0)

笔试题
摘要:##html篇 html有nav这个标签 ##css篇 line-through 不是css属性 元素居中,如果外层是body就: <body> <div class="box"></div> </body> .box{ position: absolute; } // 第一种 { top: 0; 阅读全文

posted @ 2022-09-13 16:27 In-6026 阅读(14) 评论(0) 推荐(0)

navgateTo和redirectTo的区别
摘要:来自:https://blog.csdn.net/changyana/article/details/125593906 阅读全文

posted @ 2022-09-11 01:04 In-6026 阅读(52) 评论(0) 推荐(0)

跨端兼容,条件编译;#ifedf与#endif
摘要:// #ifedf H5 和 // #endif 必须成对出现 注意注释方式不同 ###template中 <!-- #ifedf H5 --> <view>只在H5页面中显示</view> <!-- #endif --> <!-- #ifedf MP-WEIXIN --> <view>只在微信小程 阅读全文

posted @ 2022-09-11 00:55 In-6026 阅读(93) 评论(0) 推荐(0)

面试题
摘要:##浏览器篇 ####从输入URL到浏览器显示页面过程中都发生了什么 1. 发送至 DNS 服务器并获得域名对应的 WEB 服务器的 ip 地址 2. 通过Cache-Control和Expires来检查是否命中强缓存,命中就从本地磁盘/缓存中取html(200 from disk cache) 3 阅读全文

posted @ 2022-09-09 00:46 In-6026 阅读(104) 评论(0) 推荐(0)

两个非同源页面之间通信,postMessage
摘要:####http://127.0.0.1:3000/a.html <iframe id="frame" src="http://127.0.0.1:3001/b.html"></iframe> <script> iframe.onload = function() { iframe.contentW 阅读全文

posted @ 2022-09-08 02:10 In-6026 阅读(238) 评论(0) 推荐(0)

跨域解决方法
摘要:##jsonp ####原理:利用了img,link,script,iframe标签都不存在跨域限制的特点,使用script标签传递函数 ####大致步骤:前端把一个函数(func)传递到后端,后端做字符串拼接,得到 "func('一段文字')" 的字符串,发送回前端后,前端就会执行 func('一 阅读全文

posted @ 2022-09-08 02:03 In-6026 阅读(43) 评论(0) 推荐(0)

新安装的Hbuilderx可能经常报这个错,FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - process out of memory
摘要:据网友所言:这是因为Hbuilder自带的nodejs版本低,所以内存溢出 如果电脑上有node的话就把如下文件直接粘贴过来,把hbx的node文件替换掉 两个npm,两个npx名字的文件,和node.exe 以新版node的同名文件覆盖 ###接下来可能遇到这个问题: [编译scss/sass] 阅读全文

posted @ 2022-09-05 23:56 In-6026 阅读(995) 评论(0) 推荐(0)

导航