摘要: 用js的方式实现如jquery那样的方法连续调用 $("div").width(100).height(500).html(123); 阅读全文
posted @ 2018-04-24 23:28 stone_ye 阅读(984) 评论(0) 推荐(0) 编辑
摘要: 对象方法里要通过一个变量来调用显示对象属于名称,可以这样做 我们知道person.borther1等同于person["borther"], person["borther"]用字符串拼接的写法就是person["borther"+1] 应用到上述方法 阅读全文
posted @ 2018-04-24 23:22 stone_ye 阅读(1192) 评论(0) 推荐(0) 编辑