摘要: map 映射 reduce 求平均数 filter 过滤 forEach 遍历 async/await 如果对小哥哥小姐姐有帮助请点个推荐哈,欢迎留言、评论、搞事!! 双肩背包 【正品折扣专业店】 -- biy1314.taobao.com 阅读全文
posted @ 2019-07-06 20:26 问问大将军 阅读(484) 评论(0) 推荐(0) 编辑
摘要: 只需要在app中有web-view组件的页面,onload中加入一下代码即可 支持vue2,vue3 const webview = plus.webview.currentWebview(); //获取窗口 // eslint-disable-next-line no-undef plus.key 阅读全文
posted @ 2024-01-22 11:16 问问大将军 阅读(292) 评论(0) 推荐(0) 编辑
摘要: 自动格式化插件 Prettier-Code formatter Vetur Eslint 首选项》设置》 { // vscode默认启用了根据文件类型自动设置tabsize的选项 "editor.detectIndentation": false, // 重新设定tabsize "editor.ta 阅读全文
posted @ 2021-09-11 23:04 问问大将军 阅读(1668) 评论(0) 推荐(0) 编辑
摘要: Router-hash实现 阅读全文
posted @ 2021-08-06 17:57 问问大将军 阅读(144) 评论(0) 推荐(0) 编辑
摘要: node实时聊天工具简单实现 搭建node 服务并且启动。 nodemon 启动 socket.js。 新开运行窗口,通过 telnet localhost 9000启动新对话框,先输出Hi n,然后输入内容点击回车,老窗口会收到新窗口发送的内容。还可以继续新开对话框,都可以监听得到。excelle 阅读全文
posted @ 2021-06-21 14:30 问问大将军 阅读(156) 评论(0) 推荐(0) 编辑
摘要: ##Mac电脑brew老安装失败终极解决办法 找了好几天,终于找到解决办法了,难受 — [https://discourse.brew.sh/t/i-have-problem-with-installation-please-help-me/2906/6] git clone https://git 阅读全文
posted @ 2021-06-21 14:29 问问大将军 阅读(323) 评论(0) 推荐(0) 编辑
摘要: nodeJS基础操作 读取内存占用率 第三方插件使用方法(git下载插件、loading插件) Promise使用方法(在第2条中有使用) 同步、异步调用文件 启动一个3000端口的本地服务 页面读取、未找到路由404页面、接口调用返回json、steam流处理图片css等(都在第5条里面实现了) 阅读全文
posted @ 2021-06-21 14:27 问问大将军 阅读(68) 评论(0) 推荐(0) 编辑
摘要: 大厂面试题: https://www.cnblogs.com/hanxuming/p/10642074.html https://www.cnblogs.com/sexintercourse/p/12418512.html https://juejin.im/post/686439806070276 阅读全文
posted @ 2021-06-18 16:18 问问大将军 阅读(26) 评论(0) 推荐(0) 编辑
摘要: //temple部分 <template> <!-- 本页面是虚拟加载组件,还有个长列表懒加载组件(sickListPageLoad.vue)。 --> <view class="sickBody"> <scroll-view scroll-y="true" class="scroll-Y" @sc 阅读全文
posted @ 2021-03-05 11:08 问问大将军 阅读(5474) 评论(4) 推荐(1) 编辑
摘要: format(seconds) { let hour = Math.floor(seconds / 3600) >= 10 ? Math.floor(seconds / 3600) : '0' + Math.floor(seconds / 3600); seconds -= 3600 * hour; 阅读全文
posted @ 2021-01-25 11:37 问问大将军 阅读(1273) 评论(0) 推荐(0) 编辑
摘要: let a = ""//undefined/null/new Function/new Object/{}/new Date()/"" console.log("33",Object.prototype.toString.call(a)) console.log(Object.prototype.t 阅读全文
posted @ 2021-01-13 15:45 问问大将军 阅读(114) 评论(0) 推荐(0) 编辑