layer ajax请求
$.ajax({
// url: '../php/creatSceneXml.php',
url: '../php/action.php',
type: 'POST',
dataType: 'html',
data: { act: 'renameMap', name: value, xmlname: xmlname, mapid: mapid }
})
.done(function (result) {
layer.msg("更改成功!");
})
.fail(function () {
console.log("error");
})
.always(function () {
getExitMap();
console.log("complete");
});