自定义函数 ejs。helper
通过src 的方式引入ejs, 用ejs.filters自定义函数,一直报错,请问到底是怎么定义函数的?还是说要通过npm install 然后 require 进来 才可以?
Very sorry, I don't speak or read Chinese -- and Google Translate doesn't provide an understandable translation. Could you simplify this, or post a translation?
I import ejs which have self defined function by ejs.filter method through html src property, and this action always report error, please tell me how to define a ejs function(JS fucntion of nodejs? JS funtion Of html)? Are there a another way of import function by npm install and require it?
通过src 的方式引入ejs, 用ejs.filters自定义函数,一直报错,请问到底是怎么定义函数的?还是说要通过npm install 然后 require 进来 才可以?
兄弟,你是来搞笑的吗?你也认为中文是全世界通用的语言吗?哈哈哈😝