知识小点心
1、<script src="<%=request.getContextPath()%>/javascript/jquery/jquery-1.4.1.js"></script>
2、<script src="${pageContext.request.contextPath}/javascript/jquery/jquery-1.4.1.js"></script>
?
3、追加option
?document.getElementById("modelName").options.length = 0;
???// var firstOption = new Option();
???// firstOption.text = "Select...";
?? ??// document.getElementById("modelName").appendChild(firstOption);
??? document.getElementById("modelName").innerHTML = "<option>Select...</option>"
?
?
?
var modelNames = xmlHttp.responseXML.getElementsByTagName("modelName");
???
???var dlcModel = document.getElementById("modelName");
???var option = null;
???for(var i=0;i<modelNames.length;i++){
????option = document.createElement("option");
????option.appendChild(document.createTextNode(modelNames[i].firstChild.nodeValue));
????option.value = modelNames[i].firstChild.nodeValue;
????dlcModel.appendChild(option);
???}
?
4、org.w3c.dom api
http://api.java2000.net/class2258
?
5、<html>
<body>
<script type="text/javascript">
var variables = "";
for (var name in this)
{
variables += name + "<br />";
document.write(variables);
}
</script>
</body>
</html>
?
?
5、 50个实用的JavaScript工具http://www.iteye.com/news/5846-50-practical-javascript-tools
6、http://javascript.internet.com/text-effects/customizable-javascript-prompt.html?弹出框