1. 全局,function 内
function 内变量使用 var,重名时,局部变量的优先级更高
function 内变量使用 var,重名时,局部变量的优先级更高
1 2 3 4 5 |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
|
I think many guys are using express
as they backend service framework, there is a most important thing Test
. We should write test for the apis that usually contains a lot of business logics.
Today I want to show my experiences on writing test for express apis.
Configuration blocks and run blocks get executed at different points in the application bootstrap, and have different injection locals at their disposal. Here’s a summary of what you can find in the AngularJS documentation.