bot = new MBot(document.getElementById( "bot "),{draggableCursor: 'default ',draggingCursor: 'pointer '});
其中的 {...}这段,是什么语法啊!?
------解决方案--------------------
json
一种类似于HASH的JS对象,可以替代XML作为小型数据存储
------解决方案--------------------
相当于
var o = new Object();
o.draggableCursor = "default ";
o.draggingCursor = "pointer ";
bot = new MBot(document.getElementById( "bot "),o);