原生移动端H5
1.单位的转化
2.ajax请求
3.页面渲染问题
4.跳转页面的方式
获取链接上的参数
$(document).ready(function (){
function getUrlParam(name) { //获取参数
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); //构造一个含有目标参数的正则表达式对象
var r = window.location.search.substr(1).match(reg); //匹配目标参数
if (r != null) return unescape(r[2]);
return null; //返回参数值
}
var userId = getUrlParam("userId") //商户号
接口调用
function checkPhoneIsExis(phone){
$.ajax({
type: 'POST',
async: false,
url: "https://www.cmspq.xyz/htmlApi/repair/getUserOrderByUserIdAndStoreNo",
data: { "customerId": userId, "storeNo":phone },
success: function (data) {