这样消除了同一份代码出现在两处的不良结构,避免了同步的困难。 当 node.server 需要临时修改 ActionXxx.js 时,只要在 server.js 里临时 require('../tic.action').ActionXxx 即可。一处修改,到处可用。