利用对象的属性不能相同的特点进行去重: var b = Array.from('acbacebgjfab') //通过Array.from方法定义一个新的数组 function uniq(arry){ if(!Array.isArray(arry)){ //先判断传入的数据是不是数组类型 retur ...
分类:
编程语言 时间:
2020-11-17 12:19:33
阅读次数:
5
(function initApp(){ loadApp(); })() function loadApp (){ tenantContId().then((res)=>{ localStorage.setItem("tenantId",res) new Vue({ router, store, r ...
分类:
其他好文 时间:
2020-11-17 11:53:37
阅读次数:
4
添加首页 menu页面 ###截图展示 menu.js源码 // pages/menu/menu.js Page({ /** * 页面的初始数据 */ data: { }, /** * 生命周期函数--监听页面加载 */ onLoad: function (options) { }, /** * 生 ...
分类:
微信 时间:
2020-11-16 13:34:02
阅读次数:
29
是自动补全的变量的类别p:parameter 参数m:method 方法c:class 类 v:variable 变量f:function 函数 ...
分类:
其他好文 时间:
2020-11-16 13:18:14
阅读次数:
3
React使用高阶组件有两种一种是调用传入的组件另外一种是继承传入的组件。高阶组件就是一个函数接受参数组件返回的也是组件1、functionHtight1(componentName){returnclassWrapComponentextendsComponents{render(){return(<componentName...this.props>{this.props.chi
分类:
其他好文 时间:
2020-11-13 12:08:44
阅读次数:
6
第一种: 1 $(document).ready(function(){ 2 //do somethings 3 }); 第二种: 1 $(function(){ 2 //do somethings 3 }); 第三种: 1 jQuery(function($){ 2 //do somethings ...
分类:
Web程序 时间:
2020-11-12 14:23:20
阅读次数:
11
<body> <div></div> <script> var div = document.querySelector('div'); retNowTime(); setInterval(retNowTime, 1000); function retNowTime() { var date = n ...
分类:
编程语言 时间:
2020-11-12 13:41:28
阅读次数:
5
错误1 gciantispider.getchildlst does not exist 原因 getchildlst创建失败 解决 在mysql中设置mysqld中加上log_bin_trust_function_creators=1 错误2 org.hibernate.engine.jdbc.s ...
分类:
数据库 时间:
2020-11-12 13:32:28
阅读次数:
8
Professional mechanics require the use of professional OBD2 diagnostic tools to get the job done. but before selected outstanding high-end scanners, w ...
分类:
其他好文 时间:
2020-11-12 13:22:27
阅读次数:
9
如果开启数据库的调试模式的话,你可以对数据库执行的任何SQL操作进行监听,使用如下方法: Db::listen(function($sql, $time, $explain){ // 记录SQL echo $sql. ' ['.$time.'s]'; // 查看性能分析结果 dump($explai ...
分类:
数据库 时间:
2020-11-11 16:48:50
阅读次数:
29