1、利用ES6 Set去重 {}没去重 let arr = [1, 1, 'true', 'true', true, true, 15, 15, false, false, undefined, undefined, null, null, NaN, NaN, 'NaN', 'NaN', 0, 0, ...
分类:
编程语言 时间:
2021-04-29 11:48:15
阅读次数:
0
http://www.codingwhy.com/view/8733.html set MAVEN_OPTS="-Dfile.encoding=UTF-8" ...
分类:
其他好文 时间:
2021-04-29 11:41:35
阅读次数:
0
常见数据类型: 数字 布尔值 字符串 元组 列表 字典 集合 如何判断数据的类型? 用type()函数 如age=18 print(type(age)) 输出结果:<class 'int'> 用len()函数统计数据的长度 数字类型重点介绍:整数int 浮点数float 举例: age=18 hei ...
分类:
其他好文 时间:
2021-04-27 14:53:45
阅读次数:
0
<form id="form1"> <input type="text" value="1" name="Total" /> </form> //判断序列化表单是否包含空值 var data = $("#form").serialize(); var array = data.split("&"); ...
分类:
Web程序 时间:
2021-04-27 14:39:33
阅读次数:
0
MySQL spring.datasource.url=jdbc:mysql://localhost:3306/twitter_test?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=GMT%2B8spring. ...
分类:
移动开发 时间:
2021-04-27 14:38:30
阅读次数:
0
mysql由5.0升级至8.0 1:jar包的变换 <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <version>8.0.1</version> </dependency> 2 ...
分类:
数据库 时间:
2021-04-27 14:19:35
阅读次数:
0
学习无他法,唯有持之以恒 Git解决中文乱码问题git status 乱码解决方法:git config --global core.quotepath false?git commit 乱码解决方法:git config --global i18n.commitencoding utf-8?git ...
分类:
其他好文 时间:
2021-04-26 13:50:31
阅读次数:
0
顺序结构 Java的基本结构就是顺序结构 语句和语句之间,如没有明确要求,它会从上到下依次执行。 顺序结构是最简单的算法结构。 选择结构 if else if单选 if(true|false){ //如果布尔值为true则执行,如false就跳过选择结构 } equals//字符串判断相当于strc ...
分类:
编程语言 时间:
2021-04-26 13:45:58
阅读次数:
0
首先自定义一个专门处理异步的 hooks import {reactive, toRefs} from "vue"; const useAsyncFn = (fn)=>{ let data = reactive({value:undefined ,loading:false,err:undefine ...
分类:
Web程序 时间:
2021-04-24 11:55:00
阅读次数:
0
<?php //index.php 公众号后台配置的路径是这个index.php $wechatObj = new wechat(); $wechatObj->responseMsg(); class wechat { //返回消息模板 private $textTpl = [ 'text' => ...
分类:
微信 时间:
2021-04-22 15:53:55
阅读次数:
0