js函数的定义
摘要:1.函数声明 function print(msg){ console.log(msg); }print(1); 被声明的函数不会直接执行。 它们被“保存供稍后使用”,将在稍后执行,当它们被调用时。 2.函数表达式 var x = function (a, b) {return a * b}; va
阅读全文
posted @ 2020-12-29 11:01
posted @ 2020-12-29 11:01
posted @ 2020-12-17 12:00