var button = { clicked:false, click: function(){ this.clicked = true; assert(button.clicked,"the button has been clicked"); }};button["click"](); //可以通过这种方式来调用
本文共 255 字,大约阅读时间需要 1 分钟。
var button = { clicked:false, click: function(){ this.clicked = true; assert(button.clicked,"the button has been clicked"); }};button["click"](); //可以通过这种方式来调用
转载于:https://www.cnblogs.com/halo-yang/p/7806866.html