!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"htmlhead title$A/title script language="javascript" src="prototype.js" type="text/javascript"/script script language="javascript" type="text/javascript" function showOptions() { var someNodeList = $("lstFramework").getElementsByTagName("option"); var nodes = $A(someNodeList); var info = []; nodes.each (function(node){ info.push(node.value + ": " + node.innerHTML); }); alert(info.join("rn")); } /script/headbody form select id="lstFramework" size="10" option value="1"Prototype/option option value="2"Script.aculo.us/option option value="3"Dojo/option option value="4"YUI/option /select input onclick="showOptions();" type="button" value="Show the options" /form/body/html(本文来源于图老师网站,更多请访问http://m.tulaoshi.com/webkaifa/)
Prototype实战教程----2.$A
今天图老师小编要跟大家分享Prototype实战教程----2.$A,精心挑选的过程简单易学,喜欢的朋友一起来学习吧!