欢迎来到Jeremy的博客

08 2018 档案
内存泄漏
摘要:1.全局变量引起的内存泄露 阅读全文
posted @ 2018-08-13 17:34 jeremy_o 阅读(237) 评论(0) 推荐(0)
AngularJS src ng-src的区别
摘要:angularjs 给img的src赋值的时候会在控制台报404 错误写法: <img src="http://www.tellyes.com/index/{{url}}"/> 正确写法: <img ng-src="http://www.tellyes.com/index/{{url}}"/> 在页 阅读全文
posted @ 2018-08-10 09:11 jeremy_o 阅读(253) 评论(0) 推荐(0)
react.js 给标识ref,获取内容
摘要:import React,{Component} from 'react'import ReactDOM from 'react-dom'class App extends Component{ //给一个初始化状态 constructor(){ super(); this.state={ resu 阅读全文
posted @ 2018-08-09 11:37 jeremy_o 阅读(132) 评论(0) 推荐(0)
npm install 的时候报错 (Unexpected end of JSON input while parsing near)
摘要:npm install出现”Unexpected end of JSON input while parsing near”的错误。 运行 npm cache clean --force。 阅读全文
posted @ 2018-08-09 11:31 jeremy_o 阅读(297) 评论(0) 推荐(0)