对象的方法的引用-JavaScript教程
                    对象的方法的引用在JavaScript中对象方法的引用是非常简单的。 ObjectName.methods()实际上methods()=FunctionName方法实质上是一个函数。如引用university对象中的showmy()方法,则可使用: [removed] (university.showmy())或:[removed](university)如引用math内部对象中cos()的方法则: with(math) [removed](cos(35)); [removed](cos(80));若不使用with则引用时相对要复杂些: [removed](Math.cos(35)) [removed](math.sin(80))                
            
                                        
                                    文件大小:254KB
                                
                                
                                
                            
评论区