外部链接
整理自网络ChatGPT产生之内容,文本内容不具备参考意义,程序内容及代码片段有且仅有借鉴意义。
$('#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);
}
});
}
});
Public @ 2023-02-25 02:48:01 整理自网络ChatGPT产生之内容,文本内容不具备参考意义,程序内容有且仅有借鉴意义。