转载自:http://www.ibm.com/developerworks/cn/java/l-struts1-1/ 摘要:作为基于 MVC 模式的 Web 应用最经典框架,Struts 已经正式推出了 1.1 版本,该版本在以往版本的基础上,提供了许多激动人心的新功能.本文就将带你走进 Struts 1.1 去深入地了解这些功能. Model 2 Struts 是基于 Model 2 之上的,而 Model 2 是经典的 MVC(模型-视图-控制器)模型的 Web 应用变体,这个改变主要是由于…
After ASP.NET 3.5 has been installed you need to modify the web.config file of your MOSS web site with a few Ajax specific entries. Typically, the web.config file is located in c:\inetpub\wwwroot\wss\virtualdirectories\80 1. Add the following <sectio…
1.//声明变量,js是弱类型语言,变量类型声明示没有意义的.变量类型是随时可以变化的.var a = 1; a = "haha"; a = false;2.注释与java一样(//和 /**/),但是没有文档注释.3,js中每行语句使用“:”,也可以不加,但最好加上吧.4.声明变量是,也可以不加var,加var声明,作用范围在代码块中,不加则是全局范围. 5.语法上是区分大小写的.6.java中的变量分类 *基本数据类型 ==>8个(4整型,2浮点,2字符) …
在 JavaScript 中,函数的参数是比较有意思的,比如,你可以将任意多的参数传递给一个函数,即使这个函数声明时并未制定形式参数 function adPrint(str, len, option){ var s = str || "default"; var l = len || s.length; var o = option || "i"; s = s.substring(0, l); switch(o){ case "u": s =…
Why are dashes preferred for CSS selectors / HTML attributes? I use dashes because I don't have to hit the shift key. Code completion Whether dash is interpreted as punctuation or as an opaque identifier depends on the editor of choice, I guess. Howe…