【发布时间】:2013-01-05 19:25:47
【问题描述】:
我想知道示例、建议和框架,以便以正确的方式开始在需要在 ie 中工作的 MVC/MVP js 应用程序中使用 html、css 和 js 文件 (jquery) 构建单页 Web 应用程序至少 7(这是强制性的),但如果可能的话,我希望这个应用程序也能在其他浏览器中运行良好。
代码有很多ifs和else,每个都使用document.write() js方法来编写页面元素。到90年代风格呢,如下图:
if ($auth$ == 19) {
document.write("<TR>");
document.write("<TD NOWRAP WIDTH='100%' height='26'>");
document.write("<font face='Arial, Helvetica'><B>$username$</B> you cannot access your account.<p>Please contact your Security Administrator or Help Desk.</font>");
document.write(" </TD>");
document.write("</TR>");
}
80% 的 Web 应用程序都以这种方式编写,这取决于外部变量值
让我能够以 MVC/MVP js 方式对此进行原型设计的 js 现代框架或现代方法是什么?
一些参考资料?教程?
很高兴得到您的帮助,谢谢!
【问题讨论】:
-
重构?看看你有什么,我更倾向于完全重新开始
标签: javascript html css model-view-controller web-applications