|
var data = {
"type" : "custom_create",
"person" : "xxx",
"title" : "<a href='http://xxx'>参数1</a>",
"body" : "<a href='http://xx'>参数2</a>"
}
var action = this.Actions.load("x_message_assemble_communicate");
action.MessageAction.customCreate(//平台封装好的方法
data,//body请求参数
function( json ){ //服务调用成功的回调函数, json为服务传回的数据
data = json.data; //为变量data赋值
}.bind(this),
function( json ){ //服务调用失败的回调函数, json为服务传回的数据
data = json.data; //为变量data赋值
}.bind(this)
);改成这样的超链接也不行
|
|