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 标签: