Open GSSBilly opened 5 years ago
[重複的 Script 設定, 請善用 Layout]
https://github.com/houtzai/NetMVCWorkshop1/blob/ec9439a530032986122474a7a6407720b2462b47/NETMVCWorkshop1/Views/Book/Create.cshtml#L78-L80
https://github.com/houtzai/NetMVCWorkshop1/blob/ec9439a530032986122474a7a6407720b2462b47/NETMVCWorkshop1/Views/Book/Edit.cshtml#L97-L99
[htmlAttributes,具名參數使用與否請維持一致性]
https://github.com/houtzai/NetMVCWorkshop1/blob/ec9439a530032986122474a7a6407720b2462b47/NETMVCWorkshop1/Views/Book/Create.cshtml#L19
https://github.com/houtzai/NetMVCWorkshop1/blob/ec9439a530032986122474a7a6407720b2462b47/NETMVCWorkshop1/Views/Book/Create.cshtml#L21
https://github.com/houtzai/NetMVCWorkshop1/blob/ec9439a530032986122474a7a6407720b2462b47/NETMVCWorkshop1/Controllers/BookController.cs#L12
[無意義前綴]
https://github.com/houtzai/NetMVCWorkshop1/blob/ec9439a530032986122474a7a6407720b2462b47/NETMVCWorkshop1/Controllers/BookController.cs#L14
https://github.com/houtzai/NetMVCWorkshop1/blob/ec9439a530032986122474a7a6407720b2462b47/NETMVCWorkshop1/Controllers/BookController.cs#L30
https://github.com/houtzai/NetMVCWorkshop1/blob/ec9439a530032986122474a7a6407720b2462b47/NETMVCWorkshop1/Controllers/BookController.cs#L50
DRY 原則(Do not repeat yourself)
[重複的 Script 設定, 請善用 Layout]
https://github.com/houtzai/NetMVCWorkshop1/blob/ec9439a530032986122474a7a6407720b2462b47/NETMVCWorkshop1/Views/Book/Create.cshtml#L78-L80
https://github.com/houtzai/NetMVCWorkshop1/blob/ec9439a530032986122474a7a6407720b2462b47/NETMVCWorkshop1/Views/Book/Edit.cshtml#L97-L99