do you write your JavaScript in a ASP.NET MVC view … or in a separate JavaScript file?

后端 未结 6 1706
深忆病人
深忆病人 2020-12-07 11:24

Trying to improve my coding styles I\'ve tried different solutions but I can\'t figure out what is the best.
I\'ve started putting JavaScript inside my views but I don\'

6条回答
  •  南方客
    南方客 (楼主)
    2020-12-07 12:13

    A separate file for tidiness at the least. The less languages you put into each file, the easier it will be to read what it does at a glance.

提交回复
热议问题