问题描述
我的代码如下:$(function(){userName=sessionStorage.userName;$("#search").live("keydown",function(event){if(event.which==13){varquestionTitle=document.getElementById("search").value;varparam={'questionTitle':questionTitle};$.ajax({type:"post",data:param,async:true,cache:false,",success:successToShowQuesstion1});}});});functionsuccessToShowQuesstion1(r){varresult=r.result;if(result==1){location.href="showquestion1.html";}}如何在android模拟器上只要按一次确定就ok啊
时间: 2024-09-13 05:37:41