Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
function click_showStore()
{
$('div#id-div-box').remove();
var divShow =$('#id-div-diplay');
var divBox= $('<div id="id-div-box"></div>')
chrome.storage.local.get( 'strlist' , function(value) {
if(value && value.strlist) {
console.log( value.strlist );
console.log( 'len='+ value.strlist.length );
var items = value.strlist;
for(var i=0; i< items.length ; i++){
var itm = items[i];
divBox.append('<p>'+ itm.text + '</p><br />');
}
divShow.append(divBox);
}
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.