我試圖從ngRepeat兩個變量傳遞給一個函數,但似乎我失去了一些東西。有人可以解釋它是什麼嗎? <tr ng-repeat="user in users"><td>
<select
ng-model="user.selection"
ng-options="action.id as action.name for action in userActions"
ng
從我的知識來看,它不可能直接通過獲取tab.url(只在popup.html中可能),並且做消息傳遞也需要popup.html打開。無論如何繞過這一點,並從background.html獲取當前頁面的網址? 我最好的拍攝是與消息傳遞,這是我在background.html var bg = chrome.extension.getPopupPage();
var myURL = bg.myURL