解:
goog.net.XhrIo.send(url, undefined, undefined, undefined, {'Cache-Control': 'no-cache'})您应该使用
undefined而不是要跳过的可选参数,因为这100%会模拟Javascript中可选参数的默认值。
小例子:
myfunc(param);//is equivalent tomyfunc(param, undefined, undefined, undefined);
强烈建议
:如果您有很多参数,请使用JSON,并且可以在参数列表的中间包含可选参数。看看这是如何在jQuery中完成的。



