chrome-storage-promise:使用Promise的chrome.storage包装器

时间:2021-04-29 22:33:33
【文件属性】:
文件名称:chrome-storage-promise:使用Promise的chrome.storage包装器
文件大小:9KB
文件格式:ZIP
更新时间:2021-04-29 22:33:33
JavaScript Chrome储存承诺 安装 npm npm install --save chrome-storage-promise 凉亭 bower install --save chrome-storage-promise 用法 // set chrome . storage . promise . local . set ( { 'foo' : 'bar' } ) . then ( function ( ) { // resolved console . log ( 'set' ) ; } , function ( error ) { // rejected console . log ( error ) ; } ) ; // get chrome . storage . promise . local . get ( 'foo' ) . then ( function ( it
【文件预览】:
chrome-storage-promise-master
----bower.json(550B)
----src()
--------chrome-storage-promise.js(7KB)
----.travis.yml(177B)
----gulpfile.js(268B)
----test()
--------chrome-storage-mock-error.js(3KB)
--------chrome-storage-mock.js(2KB)
--------spec.js(17KB)
--------spec-helper.js(144B)
----README.md(1KB)
----dist()
--------chrome-storage-promise.js(3KB)
----.gitignore(653B)
----webpack.conf.js(390B)
----karma.conf.js(2KB)
----package.json(1KB)

网友评论