当前位置:首页 > Web开发 > 正文

function mynew(fn) { return function() { let obj = { __prot

2024-03-31 Web开发

function mynew(fn) {

  return function() {

    let obj = {

      __proto__:fn.prototype

    }

    fn.apply(obj,arguments)

    return obj

温馨提示: 本文由Jm博客推荐,转载请保留链接: https://www.jmwww.net/file/web/31289.html