@.format()
APIFormat
执行template脚本
调用方法
- (template, parameters, options) -> string
参数介绍
- template: String脚本
- parameters: Object<name, value>输入变量
- options: {async, mxmlAsyncTemplate, parser, functors}执行脚本的选项
- async: Boolean是否支持异步支持
- mxmlAsyncTemplate: Boolean是否支持MXML中的异步属性
- parser: String
脚本解释器
"text/plain"
: 普通文本解释器
"text/mxml"
: MXML解释器
- functors: Object<name, (template, call, parameters, options, arg ...) -> result>内部函数支持
关联API
- @.format.closure()
- @.format.compile()
- @.format.date()
- @.format.functors
- @.format.parsers
- @.format.tmpl()
- @.format.zero()