码迷,mamicode.com
首页 > Web开发 > 详细

js各种小知识

时间:2017-11-30 10:25:11      阅读:151      评论:0      收藏:0      [点我收藏+]

标签:color   func   pre   length   ons   参数   nbsp   test   style   

1、获取函数里面的参数个数

1 function test(x,y,z){}
2 // 获取test参数的个数
3 console.log(test.length) // 3

 

js各种小知识

标签:color   func   pre   length   ons   参数   nbsp   test   style   

原文地址:http://www.cnblogs.com/zhaobao1830/p/7927663.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!