CMSV6Help Center
/
839 DOCS · 211 VIDEOS中文

Chinese reference example

Author 胡以文Updated 2024-12-10 16:49:55Doc ID 139148 words · 1 min readView original ↗

1. url Direct Reference encodeURI(encodeURI(URIstring))

http://localhost:8080/StandardApiAction_marginGroup.action?value=encodeURI(encodeURI(URIstring))

2. ajax's data parameter (recommend) encodeURI(URIstring)

var data = {}
data.value = encodeURI(URIstring)
$.ajax ({
url: 'http://localhost:8080/StandardApiAction_marginGroup.action
data: data
cache:false
dataType:'json ',
success: function (json) {
if(json.result == 0) {
alert('Success');
} else {
alert('Failure');
}
},error:function(XMLHttpRequest, textStatus, errorThrown) {
}
});
Source help.cmsv7.com
839 documents · 211 videos · docs.alwaycare.com