int result = DbHelperSQL.ExecuteSql(sql); if (result == 1){ Response.ContentType = "text/plain";Response.Write("{success:true}");}{ elseResponse.ContentType = "text/plain";Response.Write("{success:false}"); }
来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/17 02:53:52
intresult=DbHelperSQL.ExecuteSql(sql);if(result==1){Response.ContentType="text/plain";Response.Write
int result = DbHelperSQL.ExecuteSql(sql); if (result == 1){ Response.ContentType = "text/plain";Response.Write("{success:true}");}{ elseResponse.ContentType = "text/plain";Response.Write("{success:false}"); }
int result = DbHelperSQL.ExecuteSql(sql);
if (result == 1)
{ Response.ContentType = "text/plain";
Response.Write("{success:true}");
}
{ else
Response.ContentType = "text/plain";
Response.Write("{success:false}"); }
int result = DbHelperSQL.ExecuteSql(sql); if (result == 1){ Response.ContentType = "text/plain";Response.Write("{success:true}");}{ elseResponse.ContentType = "text/plain";Response.Write("{success:false}"); }
else错了,应该放到 { 前面
查询结果如果等于1,返回success:true.否则返回success:false