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