{}
对var ShopLogicOptions = {};
我一直在网上搜索,但搜索起来很难!
是否将ShopLogicOptions
声明为对象?
var ShopLogicOptions = {};
ShopLogicOptions.params = {orderId: '" + SS_JS_OrderNo + "', cartItems:[''], subTotal:'',
grandTotal:'', shippingTotal:'', discount:'', discountCode:'', productSku:'',
productName:'', productCategory:''};
另外,如何正确插入我的SS_JS_OrderNo
javascript变量?
答案 0 :(得分:4)
{}
表示空Object
。在代码中,它意味着让ShopLogicOptions
成为一个没有任何内容的对象。
答案 1 :(得分:-1)