文章目录
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<script type="text/javascript">
//实现类似jquery调用方法的连续调用
var zhang = {
game:function(){
console.log("game...");
return this;
},
sleep:function(){
console.log("sleep...");
return this;
},
watchingLive:function(){
console.log("watchingLive...");
return this;
}
}
zhang.game().sleep().watchingLive()
</script>
文章目录