import win.ui; import web.form;
/*DSG{{*/ var winform = win.form(parent=...; scroll=1;text="aardio Form";right=349;bottom=249 ) winform.add( ) /*}}*/
//创建web窗体 var wb = web.form( winform );
var html = /** <select name="model.projectId" id="aForm_model_projectId" class="required"> <option value=""></option> <option value="P201106260010">叶城第2项目</option> <option value="P201106260011">叶城第3项目</option> <option value="P201106260012">叶城第4项目</option> <option value="P201106260013">叶城的草稿</option> <option value="P201106270016">叶城第一个测试项目</option> <option value="P201106270017">叶城第一个测试项目</option> <option value="P201106290032">顺德碧海蓝天工程</option> <option value="P201106290035">香港海蓝天工程</option> </select> **/
wb.write(html) winform.show() wb.wait("");
//获取所有选项 var qEles = wb.queryEles( parent = wb.getEle("aForm_model_projectId",可以在这里指定框架名字 ); value = "P\d+" ; //e.g. P201106260011 )
//在控制台中输出所有选项 io.open() for(k,ele in qEles ){ io.print( ele.innerHTML ) }
//进入消息循环 win.loopMessage(); return winform,wb;
|