js 常用函数收集
2017-10-24 08:54
274 查看
一. string函数
1. indexOf
参考 http://www.w3school.com.cn/jsref/jsref_indexOf.asp
更多参考: http://www.w3school.com.cn/jsref/jsref_obj_string.asp
二. array函数
1. concat
2. slice
3. $.inArray(value,arr) jquery查指定的字符串是否在数组中
4. push
更多参考: http://www.w3school.com.cn/jsref/jsref_concat_array.asp
5. shift 删除数组元素首个元素,并返回该元素
1. indexOf
参考 http://www.w3school.com.cn/jsref/jsref_indexOf.asp
更多参考: http://www.w3school.com.cn/jsref/jsref_obj_string.asp
二. array函数
1. concat
2. slice
3. $.inArray(value,arr) jquery查指定的字符串是否在数组中
4. push
更多参考: http://www.w3school.com.cn/jsref/jsref_concat_array.asp
5. shift 删除数组元素首个元素,并返回该元素