我需要更改javascript对象中的值。Javascript对象成员重新分配值
var wba_product = {
sku:'12ZB7',
availability:'Usually ships in 1-2 business days',
}
我想改变这种使用JavaScript。
<script language="javascript" type="text/javascript>
if(wba_product.sku == '12ZB7') wba_product.availability + ' Items are charged to your credit card only when they ship. Your credit card will not be charged until the item is shipped to you. ';
</script>
但是这种语法不起作用。
我忘了说明。我无法更改var声明。 – Jeff 2009-08-21 20:39:51