0
http://codepen.io/j4ysen/pen/EiDyj我不斷收到NEWROW()(我的函數的名稱)沒有定義
進入ingredient
領域正確應該創建一個新的行,但我不斷收到uncaught error
說,函數本身沒有定義當按下紅色按鈕+
時。
任何人都知道我可能會做錯什麼?
http://codepen.io/j4ysen/pen/EiDyj我不斷收到NEWROW()(我的函數的名稱)沒有定義
進入ingredient
領域正確應該創建一個新的行,但我不斷收到uncaught error
說,函數本身沒有定義當按下紅色按鈕+
時。
任何人都知道我可能會做錯什麼?
在JS的第67行上,刪除分號。或者更恰當地,將其移動到行末66
更改此
if(ingredient_name === "" || ingredient_amount === "" || ingredient_unit === "Select"){
console.log("One or more fields weren't entered")
};
對此
if(ingredient_name === "" || ingredient_amount === "" || ingredient_unit === "Select"){
console.log("One or more fields weren't entered");
}
下面是與修復代碼http://codepen.io/anon/筆/ wgvuc –