笔记
zhangjian81747
这个作者很懒,什么都没留下…
展开
-
对象序列化
将对象转换为字符串原创 2020-08-16 16:49:23 · 97 阅读 · 0 评论 -
JavaScript中函数定义的方法
JavaScript中函数如何定义 1. 函数声明 function 函数名(形参){ 方法体 return 返回值 } function add(a,b){ var total = a + b; return total; } add(1,2); 以上代码等价于 add(1,2); function add(a,b){ var total = a + b; return total; } 函数声明会被提升。 2原创 2020-08-16 16:12:11 · 139 阅读 · 0 评论