-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rest参数&underscore创建对象方式 #6
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
underscore rest参数 & underscore创建对象方式
underscore中 _.restArguments 用法:
underscore创建对象方式
_.create
_.create 方法非常简单,根据你给的原型(prototype),以及一些 own properties,构造新的对象返回。
举个简单的例子:
undercore 的实现思路也大抵如此。
The text was updated successfully, but these errors were encountered: