首页 相关文章 Prototype实战教程----1.$$

Prototype实战教程----1.$$

htmlheadtitleTest $$/titlescript src="prototype.js"/scriptscriptfunction test$$(){  /**//*   in case CSS is not your forte, the expression below says   'find all the INPUT elements that are inside   elements with class=field that are inside a DIV   with id equal to loginForm.'  */  var f = $$('div#loginForm .field input');  var s = '';  for(var i=0; if.length; i++){    s += f[i].value + '/';  }  alert(s); // shows: "joedoe1/secret/"  //now passing more than one expression  f = $$(&#...[ 查看全文 ]

2016-02-19 标签:

Prototype实战教程----1.$$的相关文章

手机页面
收藏网站 回到头部