56

我只是想用JavaScript写一个方法...

 5 years ago
source link: https://juejin.im/post/5b3f3b22f265da0fa644874b
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
JavaScript中定义一个方法主要可以分成两种形式: 函数声明 函数表达式 函数声明 声明体是最普通的,与其他语言也相近的一种方式。 function func(a, b) { return a + b } func(1, 2) // 3 不过,

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK