Jacquelyn38 Jacquelyn38
4年前
这些JS工具函数够你用到2020年底了
前言活不多说,自己平时搜集的干货函数奉上。干货函数找出数字在数组中下一个相邻的元素let i  "";let rr  ;const name  (n, arr1)    let num  Number(n);    for (let i  0; i < arr1.length; i)         const elemen
Wesley13 Wesley13
3年前
java泛型的二分查找
随便测试了一下不知道是否完全正确/CreatedbyVoidYoungon7:57PM6/25/2016.IDEATest.泛型二分查找此处返回的负数为在list里1开始计算的次序位置,不是数组下标/publicclassGe
小白初学JavaScript,遇得到一个关于document.write输出的问题,求教
题目如下:统计在这些单词:“America”、“Greece”、“Britain”、“Canada”、“China”、“Egypt”中包含“a”或“A”的字符串的个数。下面是我写的代码:languageDocumentvarziMunewArray("America","Greece
Stella981 Stella981
3年前
C#序列化反序列化对象为base64字符串
之所以序列化为base64字符串方便传输,可存储在本地也可以是服务器publicclassSerializer{privateSerializer(){}publicstaticstringSerialize<T(Tobj)
Stella981 Stella981
3年前
C#winform中数据库的连接
一、连接VS2013自带的本地数据库usingSystem.Data.SqlClient;首先定义一个连接字符串publicstaticstringConnectString"Server(localdb)\\Projects;InitialCatalogTest;IntegratedSecurity
Stella981 Stella981
3年前
Python format 用法详解
一、填充字符串1\.位置print("hello{0},thisis{1}.".format("world","python"))根据位置下标进行填充print("hello{},thisis{}.".format("world","python"))根据顺序自动填充
Wesley13 Wesley13
3年前
ES6字符串操作讲解(详细),字符串编码表,代码单元,码点的详细介绍。
以前用到字符串的方法时候,并不会深刻的去思考其中的原理,所以在es6新增的这些方法里就有点蒙圈了,于是想要搞清楚为什么会新增这些方法,以及如何使用这些方法。 在博客园上看见一篇大神SamWeb的总结,很是详细,讲解透彻,故,引用于此,望莫失莫忘。地址:https://www.cnblogs.com/SamWeb/p/7091469.htmlE
Stella981 Stella981
3年前
Jquery补充及插件
此篇为jQuery补充的一些知识点,详细资料请看另一篇博客,地址:https://www.cnblogs.com/chenyanbin/p/10454503.html一、jQuery中提供的两个函数1$.map(array,callback(element,index));21.对于数组
Stella981 Stella981
3年前
QString组合、拆分。
1、组合字符常用arg()函数QStringtestQString("_haha_%1_hehe%2").arg("ee").arg("aa");      //test"_haha_ee_heheaa"eg:arg(constQString&a,intfieldWidth0,QCharfillCh
Wesley13 Wesley13
3年前
ES6 扩展运算符 三点(...)
含义扩展运算符(spread)是三个点(...)。它好比rest参数的逆运算,将一个数组转为用逗号分隔的参数序列。console.log(...1,2,3)//123console.log(1,...2,3,4,5)//12345...