import win.ui;
/*DSG{{*/
mainForm = win.form(text="学习";right=1543;bottom=772)
mainForm.add(
custom={cls="custom";text="自定义控件";left=64;top=88;right=1394;bottom=688;z=1};
plus={cls="plus";left=254;top=916;right=452;bottom=1217;z=2};
static={cls="static";text="Static";left=99;top=20;right=391;bottom=55;transparent=1;z=3}
)
/*}}*/
import web.view
import console
var wb =web.view(mainForm.custom)
mainForm.show();
wb.go("https://www.ncsti.gov.cn/kjdt/")
wb.wait("")
js='
string(document.querySelector("div.service_list_cntNr>a").href)
'
wb.doScript(js,function(result){
console.log(result)
} )
win.loopMessage();