我使用骨干js(Marionette )与其他功能一起制作应用,如Backgrid、骨干本地存储、骨干无线电、环氧树脂、骨干关系模型。
有什么问题?
当我在主干集合中使用本地存储功能时,它会在我的视图中显示空白表。
var UserModel = require('./user-model');
var BackgridFilter = require('backgrid.filter');
var BackgridPaginator = require('backgrid.paginator');
var BackgridSel
我看到的刀刃是这样的:
<ul class="nav">
<li>
...
</li>
// if exist local storage run this component
<notification-view></notification-view>
</ul>
如果存在本地存储,我想添加条件,它将运行组件vue。
我有main.js,我有检查本地存储存在或没有这样的代码:
if (localStorage.getItem("storedData
我用git拉了一下,得到这样一条消息:你对以下文件所做的本地更改将被merge覆盖: 1. etomsef/ui/portal/build/webpack.config.js
2. etomsef/ui/portal/schema/msgs.properties
3. etomsef/ui/portal/schema/schema.js
Please commit your changes or stash them before you merge. 我是第一次使用git,我感到非常困惑,不仅仅是编码部分,它的git需要时间,经常我的文件夹被损坏,我不得不重新克隆
我正在尝试使用Axios运行一个API调用,在Android上使用Expo来响应本地版,但我遇到了一个网络错误。我尝试了一些解决办法,但似乎没有什么效果。这是控制台中显示的错误:
Network Error
at node_modules\\axios\\lib\\core\\AxiosError.js:3:0in \<global\>
at node_modules\\axios\\lib\\adapters\\xhr.js:138:8 in handleAbort
at node_modules\\event-target-shim\\dist\\event-target-sh
我是新的反应,并试图建立一个基本的客户端会议。当我试图从本地存储中检索用户名时,我得到了一个错误。SyntaxError: Unexpected token p in JSON at position 0你有什么建议来解决这个问题吗?
NavBar.js
const username = JSON.parse(localStorage.getItem('username'));
const NavBar = props => {
if (props.isAuth !== null) {
return <div>
## here I