`

js 方法参数

阅读更多
function demoMethod(){
	var s = "参数:";
   
	for (i=0; i< arguments.length; i++){
	  s += arguments[i]+" , ";		 
	}
	return(s);
}

alert(demoMethod("a","b","c"));

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics