跨域ajax访问和js sleep
function check(choice,serviceID){
varurl="<%=url1%>";
varurl2="<%=url2%>";
varstat=document.createElement("<imgid='stat'src='"+url2+"'style='display:none;'/>");
varstat2=document.createElement("<imgid='stat1'src='"+url+"'style='display:none;'/>");
document.body.insertBefore(stat);
document.body.insertBefore(stat2);
varopinion=document.getElementById("opinion").value;
opinion=encodeURI(opinion);
opinion=encodeURI(opinion);
varserviceIdName=document.getElementById("serviceIdName").value;
varnow=newDate();
varexitTime=now.getTime()+10000;
while(true){
now=newDate();
if(now.getTime()>exitTime){
location.href="decisionSubmit.action?serviceid="+serviceID+"&choice="+choice+"&decision="+opinion+"&serviceIdName="+serviceIdName;
return;
}
}
相关推荐
结束数据方法的参数,该如何定义?-- 集合为自定义实体类中的结合属性,有几个实体类,改变下标就行了。<input id="add" type="button" value="新增visitor&quo