Closed kuanyui closed 9 years ago
我當時想表達的應該是「只要在合適的地方加上這一段,就可以實作店家刪除」。不過確實好像省略太多東西了,有點想當然。我會再增加一些說明和註解讓它清楚一點。
<input type="submit">
是實作 submit button 的其中一種方法。這和 <button type="submit"></button>
在作用上差不多,只是兩者在比較舊的瀏覽器裡行為略有不同,預設外觀也有差異。不過現在(不考慮 Windows XP 和舊 IE 的話)它們兩個基本上可以視為等價,尤其我們用了 Bootstrap,連外觀也看不出差異了。稍微比對了一下,我在其他地方好像都是用 button(?),不知道為什麼這邊會突然想這樣寫。有空應該稍微全部檢查一次把它統一比較好(或許加個 footnote 說明兩者的差異)。
感謝!
期待講解,沒碰過web開發,這部份完全看不懂 ˊ・ω・ˋ
做出template tag後,這個範例code:
是不是省略了很多東西?因為這樣改是不能跑的(還想說為什麼這裡不需要csrf_token):