mirror of
https://github.com/jaywcjlove/wxmp.git
synced 2026-01-09 14:58:48 +08:00
20 lines
694 B
JavaScript
20 lines
694 B
JavaScript
$('.warpper a.btn_del_family').on('click',function(){
|
|
var self = this
|
|
chrome.tabs.getSelected(null, function (tab) {
|
|
chrome.tabs.sendRequest(tab.id, {"hello": "btn_del_family"}, function (response) {
|
|
$(self).find('span').html(response.msg);
|
|
setTimeout(function(){
|
|
$(self).find('span').html('');
|
|
}, 2000);
|
|
});
|
|
});
|
|
})
|
|
|
|
$('.warpper a.btn_del_fonts').on('click',function(){
|
|
console.log("btn_del_fonts");
|
|
chrome.tabs.getSelected(null, function (tab) {
|
|
chrome.tabs.sendRequest(tab.id, {"hello": "btn_del_fonts"}, function (response) {
|
|
console.log("response",response);
|
|
});
|
|
});
|
|
}) |