The former is the server code as follows
Server {domain:NULL, _events: {request: {[Function] domain:undefined, _events: [Object], _maxlisteners:u ndefined, setmaxlisteners: [Function:setmaxlisteners], getmaxlisteners: [Function:getmaxlisteners], Emit: [Function:emit], AddListener: [Function:addlistener], on: [Function:addlistener], once: [Fu Nction:once], RemoveListener: [Function:removelistener], removealllisteners: [function:removealllisteners ], listeners: [Function:listeners], Listenercount: [Function:listenercount], init: [Function:init] , defaultconfiguration: [Function:defaultconfiguration], Lazyrouter: [Function:lazyrouter], handle: [Function:handle], use: [Function:use], route: [Function:route], Engine: [Function:engine], PARAM: [Function:param],Set: [Function:Set], path: [Function:path], Enabled: [function:enabled], disabled: [function:disabled], E Nable: [function:enable], disable: [Function:disable], checkout: [function], connect: [function], Copy: [function], delete: [function],Get: [function], head: [function],Lock: [Function],'M-search': [function], merge: [function], mkactivity: [function], Mkcalendar: [function], mkcol: [F Unction], move: [function], notify: [function], options: [function], Patch: [function], Post: [function], propfind: [function], proppatch: [function], purge: [function], put: [funct ION], Report: [function], search: [function], subscribe: [function], trace: [function], Unlock: [function], unsubscribe: [function], all: [Function:all], Del: [function], render: [ Function:render], listen: [Function:listen], Request: [Object], Response: [Object], cache: { }, engines: {}, settings: [Object], _eventscount:1, locals: [Object], Mountpath:'/', _router: [Object]}, Connection: [Function:connectionlistener], Clienterror: [Function]}, _EVENTSC Ount:3, _maxlisteners:undefined, _connections:0, _handle:tcp {_externalstream: {}, FD: One, reading:false, owner: [Circular], OnRead:NULL, OnConnection: [Function:onconnection], Writequeuesize:0}, _usingslaves:false, _slaves: [], _unref:false, Allowhalfopen:true, Pauseonconnect:false, Httpallowhalfopen:false, timeout:120000, _pendingresponsedata:0, _connectionkey:'6::::3000'}
The latter has not materialized as a class: The code is as follows:
{[Function] domain:undefined, _events: {mount: [Function:onmount]}, _maxlisteners:undefined, setmaxlisteners : [Function:setmaxlisteners], getmaxlisteners: [Function:getmaxlisteners], emit: [Function:emit], AddListener: [Func Tion:addlistener], on: [Function:addlistener], once: [Function:once], RemoveListener: [Function:removelistener], R Emovealllisteners: [Function:removealllisteners], listeners: [Function:listeners], Listenercount: [Function: Listenercount], init: [Function:init], defaultconfiguration: [Function:defaultconfiguration], Lazyrouter: [Function: Lazyrouter], handle: [Function:handle], use: [Function:use], route: [Function:route], Engine: [Function:engine], PARAM: [Function:param],Set: [Function:Set], path: [Function:path], Enabled: [function:enabled], disabled: [function:disabled], enable: [Function:enable ], disable: [Function:disable], checkout: [function], connect: [function], copy: [function], delete: [function],
Get: [function], head: [function],Lock: [Function],'M-search': [function], merge: [function], mkactivity: [function], Mkcalendar: [function], mkcol: [function], move: [Functi On], notify: [function], options: [function], Patch: [function], post: [function], propfind: [function], proppatch: [function], purge: [function], put: [function], report: [function], search: [function], subscribe: [function], trace : [function], unlock: [function], unsubscribe: [function], all: [Function:all], Del: [function], Render: [function: Render], listen: [Function:listen], request:incomingmessage {app: [Circular]}, response:serverresponse {app: [Cir Cular]}, cache: {}, Engines: {}, settings: {'x-powered-by':true, ETag:'Weak', 'etag fn': [Function:wetag], env:'Development', 'Query Parser':'Extended', 'Query parser fn': [function:parseextendedquerystring],'Subdomain offset':2, 'Trust Proxy':false, 'Trust proxy fn': [Function:trustnone], view: [Function:view], Views:'/users/amanda/downloads/aa/blog/views', 'JSONP Callback Name':'Callback'}, _eventscount:1, locals: {settings: {'x-powered-by':true, ETag:'Weak', 'etag fn': [Function:wetag], env:'Development', 'Query Parser':'Extended', 'Query parser fn': [function:parseextendedquerystring],'Subdomain offset':2, 'Trust Proxy':false, 'Trust proxy fn': [Function:trustnone], view: [Function:view], Views:'/users/amanda/downloads/aa/blog/views', 'JSONP Callback Name':'Callback'}}, Mountpath:'/', _router: {[Function:router]params: {}, _params: [], CaseSensitive:false, mergeparams:undefined, strict:false, stack: [[Object], [object], [object]}}
In addition App.createserver () This method has been abolished, belongs to the old code, WebSocket to listen to the server, listen to the instance of the app, that is, the first server;
App.listen (3000) is not the same as the app