logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

VM296:1 Uncaught SyntaxError: Unexpected token u in JSON at position 0 at JSON.parse (<anonymous>)

背景localStorage做数据持久化时,使用 JSON.parse解析一个字符串,作为持久化的默认值,获取默认值报错:解决const SERVER_ADDRESS = 'server_address'// const SERVER_ADDRESS_DEF = '192.168.8.60'const SERVER_ADDRESS_DEF = '"192.168.8.60"'//注...

#json#javascript
vscode中自定义vue模板(name默认为文件名)

配置模板代码File(文件) -&gt; preperences(首选项) -&gt; User Snippets(用户代码片段)输入vue选中vue.json在vue.json文件中输入下面的代码片段{"vue-template": {"prefix": "vueTemp","body": ["&lt;template&gt;","

解决electron-vue打包后加载.node文件找不到资源的问题

背景electron-vue加载 .node文件在开发环境可以正常运行,但是打包以后就出现了问题,提示加载不到资源。排查之后发现通过webpack把文件压缩成render.js之后,node文件的加载路径竟然写死成了工程所在的绝对路径。修改 .electron-vue目录下webpack.renderer.config.js文件module: {rules: [{test: /\.node$/,u

#npm#vue.js#webpack
vue判断一个复选框的选中状态

vue判断一个复选框的选中状态&lt;body&gt;&lt;div id="app"&gt;&lt;input type="checkbox"@click = "select(event)"&gt; {{checkedStatus}}&lt;/div&gt;&lt;/body&gt;&lt;script&gt;var app = new ...

#html#vue.js#javascript
spring boot基础 -- redis环境搭建及整合redis

下载redis下载地址 https://github.com/tporadowski/redis/releases。启动redisredis-server.exe redis.windows.confredis5远程连接必须设置密码查看默认密码:127.0.0.1:6379&gt; config get requirepass1) "requirepass"2) ""配置密码:127.0.0.1:

#spring boot#redis
到底了