JavaScript 常用对象宝典
JavaScript 常用对象宝典
1. String 对象
- 属性:length
 - 方法:charAt(), charCodeAt(), concat(), indexOf(), lastIndexOf(), slice(), substring(), substr(), toUpperCase(), toLowerCase(), split()
 
2. Array 对象
- 属性:length
 - 方法:concat(), join(), push(), pop(), shift(), unshift(), sort(), reverse(), slice(), splice(), indexOf(), lastIndexOf()
 
3. Date 对象
- 方法:getFullYear(), getMonth(), getDate(), getDay(), getHours(), getMinutes(), getSeconds(), getMilliseconds(), getTime()
 
4. Math 对象
- 属性:PI
 - 方法:abs(), round(), ceil(), floor(), random(), max(), min(), pow()
 
5. RegExp 对象
- 方法:test(), exec()
 
6. Global 对象
- 属性:undefined, Infinity, NaN
 - 方法:parseInt(), parseFloat(), isNaN(), isFinite(), decodeURI(), encodeURI(), decodeURIComponent(), encodeURIComponent()
 
7. JSON 对象
- 方法:parse(), stringify()
 
8. Object 对象
- 方法:hasOwnProperty(), isPrototypeOf(), toString()
 
                            
                            js对象.rar
                            预估大小:16个文件
                        
                        
                        
                                
                                js对象
                                文件夹
                            
                                                        
                                
                                regex.txt
                                758B
                            
                                                        
                                
                                Location.txt
                                2KB
                            
                                                        
                                
                                Document .txt
                                2KB
                            
                                                        
                                
                                Number.txt
                                1KB
                            
                                                        
                                
                                Array.txt
                                1KB
                            
                                                        
                                
                                window对象.txt
                                4KB
                            
                                                        
                                
                                Math.txt
                                1KB
                            
                                                        
                                
                                Navigator.txt
                                1KB
                            
                                                        
                                
                                event 对象.txt
                                5KB
                            
                                                        
                                                        
                                                        
                                                        
                                                        
                                                        
                                                        
                            
                            
                                                        
                                        
                                    文件大小:16.89KB
                                
                                
                                
                            
评论区