小程序new对象
发布于 6 年前 作者 mingluo 2325 次浏览 来自 问答

PC 端js new的对象,小程序中怎么写?

2 回复

     就是这个new的对象找不到,类似于时间戳转换,但是时间戳的Date是默认的,而这个是引用外部网络js,这是咋回事呀

function f1(value){

    this.name=value

    console.log(this.name)

}

let instance = new f1(“卢霄霄”)

回到顶部