function PostSMS(phoneNumber, sessionID, requestUrl, successAction) { $.ajax( { type: 'POST', url: requestUrl, data: { mobile: phoneNumber, sessionId: sessionID }, success: function (response, stutas, xhr) { var result = response.documentElement.textContent || response.text; if (result.toLowerCase() == "true") { successAction(); } else { MobileBusiness.ShowTip("验证码发送失败,请稍候再试"); } }, error: function (err) { MobileBusiness.ShowTip(err.responseText); } } ); }