Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

吉利易云MES的ajax请求格式 #7

Open
Kelichao opened this issue May 18, 2017 · 0 comments
Open

吉利易云MES的ajax请求格式 #7

Kelichao opened this issue May 18, 2017 · 0 comments

Comments

@Kelichao
Copy link
Owner

Kelichao commented May 18, 2017

var response = {
	returnCode:"0",// 字符串
	errorMessage:"参数错误",// 错误信息
	// 常规数据
	data:{
		a:1,
		b:2,
		c:3
	}
}

//ajax请求成功后(ajax请求返回格式标准) 传入一个对象
 var obj = {
    response: resp,// 数据源
     haveData: fn1,// 存在数据,存在数据要分两种情况// 部分无数据与全部有数据
     noData:fn2// 不存在数据
}  ;

kit.triggerSuccessEvun(obj);
//在内部按照事先定好的请求数据格式进行函数的调用
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant