js函数
时间:2019-12-06 14:15:51
收藏:0
阅读:77
声明式:
function fn() { //do something }
函数表达式:
let fn = function () { //do something }
构造函数:
function Person(name,age){ this.name=name this.age=age } let fn = new Person(‘syq‘,‘18‘)
原文:https://www.cnblogs.com/fan111/p/11994493.html
评论(0)