//页面加载完后执行
<SCRIPT language=javascript>
window.onload=function() {
}
</SCRIPT>
//js同步执行sql
var url1 ='/ServiceAction/com.velcro.hyva.service.servlet.ServiceIntegralAction?action=checkuser&id='+id1+'&sid='+sid1;
var check=true;
var result=jQuery.ajax({cache: false,url:url1,async: false}).responseText;
var id = result.split(',')[1];
var sid = result.split(',')[2];
两种方式都可以用,只是"readonly"得写成这样,
"readOnly",区分大小写