外部链接
$('#changeconnect').click(function () { var inputValue = prompt("请输入更改链接", defaultUrlInputValue); if (inputValue) { defaultUrlInputValue = inputValue; $.ajax({ type: "POST", dataType: 'json', url: "/urlmanagement/externalurl/changeconnect/", async: false, data: { flatpageid: flatpage_id, externalurl: inputValue }, success: function () { window.callback(); hideBox(); }, error: function (xhr) { alert(xhr.responseText); } }); } }); // 删除 $('#delete').click(function () { $.ajax({ type: "POST", dataType: 'json', url: "/urlmanagement/externalurl/delete/", async: false, data: { flatpageid: flatpage_id }, success: function () { window.callback(); hideBox(); }, error: function (xhr) { alert(xhr.responseText); } }); }); } //增加静态页外部链接 function addExternalUrl() { $.ajax({ type: "POST", dataType: 'json', url: "/urlmanagement/externalurl/create/", async: false, data: { flatpageid: flatpage_id, externalurl: defaultUrlInputValue }, success: function () { window.callback(); hideBox(); }, error: function (xhr) { alert(xhr.responseText); } }); } });