码迷,mamicode.com
首页 >  
搜索关键字:inarray 数组 jquery    ( 125567个结果
数组的声明和创建
# 数组的声明和创建 1. 声明数组的时候在**栈里**压缩了一个数组2. 创建数组的时候会在**堆中**开辟了生成数组(new 的东西都放在数组中,**new出来的都是对象**)3. **ArrayIndexOutOfBoundsException**是数组下标越界,超出了定义的数组长度 ~~~j ...
分类:编程语言   时间:2021-04-29 12:03:47    阅读次数:0
希尔,归并,快速排序
1. 希尔排序 思路: 是优化了的插入排序,可以改进当最值处于头或尾需要多次移动元素的问题,因为它会设置步长k(>=1),初始步长是len/2, 先保证步长为k的每个子数组有序,再进一步缩小步长直到为1的时候,数组基本有序。 ''' 希尔排序 时间复杂度 平均:O(nlogn) 最好:O(nlogn ...
分类:编程语言   时间:2021-04-29 11:58:13    阅读次数:0
C# 实现(阿姆斯特朗数)
阿姆斯特朗数 阿姆斯特朗数是一个数字,等于每个数字的幂乘以总位数。 例如,诸如0、1、153、370、371和407、1634、8208、9474的数字是阿姆斯特朗数。 例如: 371 为3位数, 则用每位数的3次方 (3 * 3 * 3)=27 (7 * 7 * 7)=343 (1 * 1 * 1 ...
分类:Windows程序   时间:2021-04-29 11:52:16    阅读次数:0
数组去重
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
jQ的四类基本选择器
#### jQuery的四种选择器 jQ选择器与css选择器本质上相差不大,但是在使用容易混淆格式或属性 ##### 1.基础选择器 $('#id名') $('.类名') $('.类名1 .类名2') $('标签名.类名') ##### 2.层级选择器 ###### 1.子代:> children ...
分类:其他好文   时间:2021-04-29 11:44:29    阅读次数:0
vue3 watch简单应用
// watch 简单应用 watch(data, () => { document.title = 'updated ' + data.count }) // watch 的两个参数,代表新的值和旧的值 watch(refData.count, (newValue, oldValue) => { ...
分类:其他好文   时间:2021-04-28 12:15:10    阅读次数:0
First Unique Character in a String (找到一个字符串中第一个不重复的字符)
问题描述 下面是有关这个问题的描述部分。 英文 Given a string s, return the first non-repeating character in it and return its index. If it does not exist, return -1. 中文 针对给 ...
分类:其他好文   时间:2021-04-28 12:10:00    阅读次数:0
vue .splice is not a function解决方案
在帮朋友解决一个vue的问题的时候,想删除数组里面的一个元素,在网上查询使用splice方法,但一直报错,提示jtConlist.splice is not a function,找了好长时间,也没找到问题 splice是数组的方法,按道理肯定有这个方法,除非jtConlist不是数组,使用type ...
分类:其他好文   时间:2021-04-28 12:06:50    阅读次数:0
jQuery练习之图片跟随
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <style> body{ text-align:center; } #small{ margin-top:40px; } #showBig{ position:absolute; displa ...
分类:Web程序   时间:2021-04-28 12:06:03    阅读次数:0
vue 去重数组中的对象
unique(arr) { const res = new Map(); return arr.filter( (arr) => !res.has(arr.strat_id) && res.set(arr.strat_id, 1) ); }, ...
分类:编程语言   时间:2021-04-28 12:04:33    阅读次数:0
125567条   上一页 1 ... 51 52 53 54 55 ... 12557 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!