Created
June 5, 2014 12:02
-
-
Save kuc-arc-f/d9157d2c83a425e7d9e3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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