我想知道示例、建议和框架,以便以正确的方式开始在需要在 ie 7 中工作的 MVC/MVP js 应用程序中使用 html、css 和 js 文件(jquery)构建单页 Web 应用程序(这是强制性的),但如果可能的话,我希望这个应用程序也能在其他浏览器中运行良好。
代码有很多 if 和 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>");
}
这个 Web 应用程序的 80% 都是以这种方式编写的,这取决于外部变量值
什么是 js 现代框架或现代方法让我能够以 MVC/MVP js 方式对此进行原型设计?
一些参考资料?教程?
很高兴得到您的帮助,谢谢!