quest[i].content = fm(fn(content));这样写就会报 Cannot read property 'replace' of undefined,有没有哪位在node.js的express框架的js文件里面写过方法?
解决方案
functions.js 放一些常用的方法
用到的时候
var funcs = require('../utils/function.js');
funcs.timeCovert();
quest[i].content = fm(fn(content));这样写就会报 Cannot read property 'replace' of undefined,有没有哪位在node.js的express框架的js文件里面写过方法?
functions.js 放一些常用的方法
用到的时候
var funcs = require('../utils/function.js');
funcs.timeCovert();