程序中出现这样的语句,看不懂,这是函数吗?
还是其它东西呢?
我想应该是一个函数吧,这样的调用有点看不懂p={action:"buy_item_sh",et_id:et_id,vcode:vcode};p={action:"get_money_sh",et_id:et_id,vcode:vcode}
还是其它东西呢?
我想应该是一个函数吧,这样的调用有点看不懂p={action:"buy_item_sh",et_id:et_id,vcode:vcode};p={action:"get_money_sh",et_id:et_id,vcode:vcode}
可以写成
var p = new Object();
p.action="buy_item_sh",
p.et_id=et_id,
p.vcode=vcode;