外部鏈接
整理自網(wǎng)絡(luò)ChatGPT產(chǎn)生之內(nèi)容,文本內(nèi)容不具備參考意義,程序內(nèi)容及代碼片段有且僅有借鑒意義。
$('#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);
}
});
});
}
//增加靜態(tài)頁外部鏈接
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);
}
});
}
});
Public @ 2023-02-25 02:48:01 整理自網(wǎng)絡(luò)ChatGPT產(chǎn)生之內(nèi)容,文本內(nèi)容不具備參考意義,程序內(nèi)容有且僅有借鑒意義。