摘要: // 原料 function fn(){ //将这个函数中的this改变,指向new新创建的对象 // 加工 this.name = "root"; } // // 出厂 var f = new fn();//创建了一个新对象 var f2 = new fn();//创建了一个新对象 console.log(f);//fn {name: "root"} console.log(f2)//fn {n 阅读全文
posted @ 2019-09-02 16:46 菜鸟小何 阅读(212) 评论(0) 推荐(0) 编辑
摘要: 拖动条 10 阅读全文
posted @ 2019-09-02 14:12 菜鸟小何 阅读(127) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"> <title>Document</title> <styl 阅读全文
posted @ 2019-09-02 08:49 菜鸟小何 阅读(371) 评论(0) 推荐(0) 编辑