我想通过jQuery.ajax()获取一些数据,通过success保存这些数据,然后使用它。函数的顺序为: url: this.html_url, success: function(data){//Here the data is saved via HTML5 localStorage });
doSomething();//The stored data is
我正在使用AJAX刷新页面上的内容,因此尝试使用HTML5中的历史API。除了Google Chrome之外,我在所有的浏览器上都能正常工作。下面的代码- * Reloads the ajax content if the history.state is not nullwindow.onpopstate = function, 0)}Uncaught TypeError: Cannot read property 'ajax</