es6->func
来源:互联网 发布:全景图拼接软件 编辑:程序博客网 时间:2024/06/04 01:38
-函数
1.默认值
function test(x,y=''2"){
console.log(x,y)
}
test(1)//1,2
2.未知行参
function test(...arg){
console.log(arg)
}
test(1,2,3)//1,2,3
3.行参赋值
function test(x,y=x){
console.log(x,y)
}
console.log(test(1))//1,1
阅读全文
0 0
- es6->func
- func
- func
- es6
- es6
- ES6
- ES6
- ES6
- es6
- ES6
- ES6
- es6
- ES6
- ES6
- ES6
- ES6
- ES6
- ES6
- 1004: C语言程序设计教程(第三版)课后习题4.8
- python通过get方式,post方式发送http请求和接收http响应-urllib urllib2
- (六)数据传输过程中编码的问题
- ireport超链接支持js事件简单实现 兼容火狐谷歌IE等浏览器
- AS错误小集
- es6->func
- 模块API之module_refcount
- JavaWeb从入门到放弃(6)-仔细看下servlet
- Mat 数据类型保存为二进制文件
- Go语言变量的生命周期
- SpringMVC基础-2-组件
- shader总结三
- MySQL之约束、修改数据表
- oracle01创建表空间