nl_tokens: mock一个server供测试使用
pl_tokens: function ( req , res , next ) { if ( req . url . indexOf ( '/api/mock' ) === - 1 ) { return next ( ) ; } var data = url . parse ( req . url , true ) . query ; setTimeout ( function ( ) { res . statusCode = data . statusCode || 200 ; res . setHeader ( 'content-type' , data . contentType || 'json' ) ; res . <mask> ( data . response || '{}' ) ; } , data . timeout || 0 ) ; }