// 获取焦点 let txt = document.getElementById("countRule"); let temp = txt.value; txt.focus(); let pointIndex = txt.selectionStart; let str1 = temp.substr... ...
分类:
其他好文 时间:
2019-09-05 19:00:47
阅读次数:
82
原题: This time we want to write calculations using functions and get the results. Let's have a look at some examples: Requirements: There must be a fun ...
分类:
其他好文 时间:
2019-09-05 13:50:49
阅读次数:
81
//把字符串中所有=换成&&& let reg=new RegExp('=','g')//g代表全部 let newMsg=JSON.stringify(msg).replace(reg,'&&&'); console.log(newMsg) ...
分类:
其他好文 时间:
2019-09-05 13:28:37
阅读次数:
652
方法一:ES6中的Set语法: <script> let arr = [1,2,3,4,3,2,1]; let newArr = [...new Set(arr)]; console.log(newArr); </script> ...
分类:
编程语言 时间:
2019-09-05 13:19:13
阅读次数:
65
get(默认值)是通过URL传递表单值,数据追加在action属性后面。 post传递的表单值是隐藏到http报文体中,url中看不到。 get是通过url传递表单值,post通过url看不到表单域的值; get传递的数据量是有限的,如果要传递大数据量不能用get,比如type=“file”上传文章 ...
分类:
Web程序 时间:
2019-09-05 10:52:26
阅读次数:
125
if(this.goldUsers[i].label.length>1){ let a = this.goldUsers[i].label a [20001, 20004] let c = { 20001:'大理石', 20002:'人造石', 20003:'石英石', 20004:'花岗石', } ...
分类:
编程语言 时间:
2019-09-05 01:02:48
阅读次数:
133
#include <stdlib.h> #include <string.h> #include <getopt.h> #include <stdint.h> #include <stdio.h> #include <limits.h> #include <unistd.h> #include <s... ...
分类:
其他好文 时间:
2019-09-05 00:35:10
阅读次数:
74
<script> $(document).ready(function () { //下标从0开始 let str = '123456789'; //使用一个参数 console.log(str.slice(3)) //从第4个字符开始,截取到最后个字符;返回"456789" console.log... ...
分类:
编程语言 时间:
2019-09-04 19:09:38
阅读次数:
103
let area = $(".textarea").not(this); area[i].attr("disabled","true") //这样获取的是DOM对象无法使用jq的attr area[i].attr("disabled","true") //这样获取的是DOM对象无法使用jq的attr ...
分类:
其他好文 时间:
2019-09-04 09:49:45
阅读次数:
69
使用SharePoint 列表数据创建一个桌面版的Power BI 报表 1. Let's use the same data Finance Sample Workbook from Power BI site for this example as well2. Load the data in ...
分类:
其他好文 时间:
2019-09-04 09:26:15
阅读次数:
129