jQuery数据类型小结(14个)
jQuery除了包含原生JS中的内置数据类型(built-in datatype),还包括一些扩展的数据类型(virtual types),如Selectors、Events等。 1. String String最常见,几乎任何一门高级编程语言和脚本语言中都支持,比如”Hello world!”即字符串。字符串的类型为string。比如 var typeOfStr = typeof “hello world”;//typeOfStr为“string” 1.1 String内置方法 “hello”.charAt(0) // “h” “hello”.toUpperCase() // “HELL
下载地址
用户评论