Commit 6b3ffd3e by yf60144

sfd

parent 762610a1
Pipeline #13856 passed with stages
in 41 seconds
......@@ -381,18 +381,32 @@
})
function get_farvor_m3u8(row,media_id) {
var clipboard = new Clipboard('.btn', {
text: function() {
return media_id;
$.ajax({
url:"api/user/get_fervor_m3u8?media_id="+media_id,
dataType:"json",
success:function (res) {
var url = res.data.url;
var clipboard = new Clipboard('.btn', {
text: function() {
return url;
}
});
clipboard.on('success', function(e) {
alert("复制成功");
});
clipboard.on('error', function(e) {
console.log(e);
});
}
});
clipboard.on('success', function(e) {
alert("复制成功");
});
})
clipboard.on('error', function(e) {
console.log(e);
});
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment