摘要: 基础查询 查询全部 select * from 表 where 条件; 查询指定列 select name, age from student as别名: select name as zName, age as zAge from student as zStudent distinct去重: s 阅读全文
posted @ 2024-07-17 17:44 这是啥!啥!啥 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 在开发环境并不做打包,采用es6 中的module进行引入;具体它是怎么做? please continue to look down~~~ 编译服务、esbild预购建、rollup打包。 npm run dev vite会跑一个开发服务; const {createServer} = await 阅读全文
posted @ 2024-07-12 16:39 这是啥!啥!啥 阅读(2) 评论(0) 推荐(0) 编辑
摘要: qiankun是single-spa二开;使用场景:不同技术栈,不同团队,独立开发部署、增量升级;总结:解耦; 主应用: 具有整合-输入子应用的html入口; 子应用 与single-spa基本一致,导出了三个生命周期函数 (bootstrap mount unmout) js沙箱: 三个沙箱(快照 阅读全文
posted @ 2024-07-10 11:23 这是啥!啥!啥 阅读(5) 评论(0) 推荐(0) 编辑
摘要: 题目:给你两个字符串 word1 和 word2 。请你从 word1 开始,通过交替添加字母来合并字符串。如果一个字符串比另一个字符串长,就将多出来的字母追加到合并后字符串的末尾。返回 合并后的字符串 。 输入:word1 = "abc", word2 = "pqr" 输出:"apbqcr" 解释 阅读全文
posted @ 2023-06-12 20:33 这是啥!啥!啥 阅读(13) 评论(0) 推荐(0) 编辑
摘要: componentWillMount:16版本就废弃了,相当于Vue中created; componentDidMount: 会在组件挂载后(插入DOM中)立即调用;相当于Vue中的onMounted; componentDidUpdate(prevProps, prevState, snapsho 阅读全文
posted @ 2023-03-28 18:39 这是啥!啥!啥 阅读(12) 评论(0) 推荐(0) 编辑
摘要: 一、类组件(有状态组件) 有props.控制状态state,可以试用生命周期函数 1. 类名称必须以大写字母开头 2. 类组件必须继承React.Component父类,从而可以使用父类中提供的方法或属性 3. 类组件必须提供render()方法 4. render()方法必须要有返回值 impor 阅读全文
posted @ 2023-03-23 14:14 这是啥!啥!啥 阅读(36) 评论(0) 推荐(0) 编辑
摘要: 1.Vue2选用选项式API(options api) 对比Vue3组合式API(Composition Api) options api在代码里分割了不同的属性(properties):data,computed属性,methods,选项所定义的属性都会暴露在函数内部的 this 上,它会指向当前 阅读全文
posted @ 2023-03-10 16:28 这是啥!啥!啥 阅读(153) 评论(0) 推荐(0) 编辑
摘要: 1.冒泡排序:【O(n2)复杂度】 let arr = [100, 52, 42, 122, 11];// 冒泡排序,跟相邻的相比较function bubbleSort (arr) { let len = arr.length; while (len) { for (let i =0; i < l 阅读全文
posted @ 2021-08-12 00:00 这是啥!啥!啥 阅读(56) 评论(0) 推荐(0) 编辑
摘要: 1. ~ [截断小数,然后取反减1:机理是二进制] example:~5 : -6 ; ~-5 : 4 ; ~4.2 : -5; ~~表示2次操作,等于parseInt() 2. & [表示按位与:机理是二进制 都是1才1] example:5 & 8: (0101)& (1000) > 0; 5 阅读全文
posted @ 2021-01-07 16:36 这是啥!啥!啥 阅读(690) 评论(0) 推荐(0) 编辑
摘要: const supportIE = { install:function (Vue) { Vue.directive('support', { inserted: function (el) { if (('placeholder' in document.createElement('input' 阅读全文
posted @ 2020-12-09 15:25 这是啥!啥!啥 阅读(205) 评论(0) 推荐(0) 编辑