Comments (2)
ie兼容
<!-- [ if IE] >
<link type="style/css" href="base.css" rel="stylesheet"/>
<![endif]-->
获取访问者IP
<script src="http://pv.sohu.com/cityjson?ie=utf-8"></script>
<script type="text/javascript">
document.write(returnCitySN["cip"]+','+returnCitySN["cname"]) ;
};
</script>
from notebook.
各种调试汇总
- chrome 调试
- f8:执行到下一个断点处
- f10:执行下一步代码
- f11:进入到调用函数内部
- nodejs 调试
- node-inspector使用
node-inspector
是基于nodejs上安装的,安装命令是npm install -g node-inspector
,参数-g 将node-inspector安装到系统环境变量中,可以在任何路径下执行,尽量保留。node-inspector
,在命令窗口执行该命令,启动inspector,不要关闭该窗口;也可以再后面加&符号,进入后台进程- ① 打开chrome,输入地址 http://127.0.0.1:8080/debug?port=5858
- ②打开nodejs的调试模式:
node --debug server.js
|supervisor --debug server.js
- ③ 开启页面服务器,html页面正常访问,e.g. http://127.0.0.1:8088,接口用的是node开启的3000端口,不是5858端口
- 在①的窗口和往常一样添加断点,③刷新重新访问,①会检测到并停留在断点处等待放行
from notebook.
Related Issues (20)
- react 父子之间组件通信的意外发现
- 设定自己的自动化测试环境
- async2.6.1源码分析之waterfall HOT 2
- async2.6.1源码分析之parallel HOT 1
- async2.6.1源码分析之asyncify
- async2.6.1源码分析之auto
- redux 源码解读
- throttle vs debounce HOT 2
- transducer in javascript HOT 2
- http/2 - High Performance Browser Networking
- http/2 入门
- 二进制浮点数的存储解读
- 尾递归(TCO)
- $elemMatch vs. Dot Notation
- 抽象语法树例子
- three 流光效果 HOT 1
- three 相关资料 HOT 2
- react-intl 单复数转换 HOT 2
- web3 HOT 2
- react
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from notebook.