Get input value Chrome Extension

后端 未结 1 583
攒了一身酷
攒了一身酷 2020-12-04 01:20

Here is my popup.js

let $token1= $(\'#token1\').val(); 
let $token2= $(\'#token2\').val();
let $token3= $(\'#token3\').val();

if(true){
chr         


        
相关标签:
1条回答
  • 2020-12-04 01:32

    I've got it!

    here is so simple:)

    chrome.runtime.sendMessage(
    { token: ['tokens', $token1 = $('#token1').val(), $token2 = $('#token2').val(), $token3 = $('#token3').val()]},
    myFunction());
    

    }

    Hope it somebody Helps )

    0 讨论(0)
提交回复
热议问题