This page looks plain and unstyled because you're using a non-standard compliant browser. To see it in its best form, please upgrade to a browser that supports web standards. It's free and painless.
| « | 三月 2010 | » | ||||
|---|---|---|---|---|---|---|
| 一 | 二 | 三 | 四 | 五 | 六 | 日 |
| 1 | 2 | 3 | 4 | 5 | 6 | 7 |
| 8 | 9 | 10 | 11 | 12 | 13 | 14 |
| 15 | 16 | 17 | 18 | 19 | 20 | 21 |
| 22 | 23 | 24 | 25 | 26 | 27 | 28 |
| 29 | 30 | 31 | ||||
String和StringBuffer类
趣谈Unicode编码
Java中文问题及最优解决方法
String.getBytes()方法中的中文编码问题
利用Eclipse编辑中文资源文件
Structs深入研究(一)-----Struts framework的工作原理和组件
用javascript控制readonly属性
java面试题及答案(基础题122道,代码题19道)
应聘Java笔试时可能出现问题及其答案
引用作为参数传递时容易搞错的两个例子
如果我们需要用javascript控制/设置表单的readonly属性,如果使用document.myform.mytext.readony=true/false 是没有任何作用的,如果控制的话,可以将mytext加一个ID然后用ID控制readonly 属性,代码如下
<html>
<script>
function ee()
{
document.getElementById("MyID").readOnly=true;//-->正确
// document.myform.ff.readonly=false; ---->错误
}
</script>
<body>
<form name="myform">
<input id="MyID" type="text" name="mytext" value="">
<input type="button" value="mybutton" onclick="ee()">
</form>
</body>
</html>