我在Polymer和Angular Material中看到了很多材料元素.据我所知,这两款产品都是google关于Material design的产品,它们之间有什么关系吗?有关Angular 2.0材质的计划吗?
我试过这个方法:
QWebSettings* settings = QWebSettings::globalSettings();
settings->setAttribute(QWebSettings::LocalStorageEnabled, true);
auto path = QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation);
settings->setOfflineStoragePath(path);
Run Code Online (Sandbox Code Playgroud)
window.localStorage为true(非null或undefined),但是当我将一个项插入localStorage时:
localStorage.setItem("b","isaac");
alert(localStorage["b"]);
Run Code Online (Sandbox Code Playgroud)
发生错误,webkit检查器控制台中的错误消息是:
QuotaExceededError:DOM异常22:尝试向超出配额的存储添加内容.