template-obj:javascript对象中的模板字符串

时间:2021-05-15 04:25:04
【文件属性】:
文件名称:template-obj:javascript对象中的模板字符串
文件大小:38KB
文件格式:ZIP
更新时间:2021-05-15 04:25:04
JavaScript 模板对象 javascript对象中的模板字符串。 轻量级实用程序模块。 (生产文件是1.29KB) 安装 npm $ npm install template-obj 凉亭 $ bower install template-obj 普通JS var templateObj = require("template-obj"); 基本的 下载 。 将其加载到脚本标签中。 < script type =" text/javascript " src =" template-obj.min.js " > </ script > 用法 基本的 var obj = templateObj ( { key1 : "value1" , key2 : "${key1} value2" } ) ; console . log ( obj ) ; /* { key1: "valu
【文件预览】:
template-obj-master
----.travis.yml(110B)
----package.json(1KB)
----gulpfile.coffee(562B)
----test()
--------tests.js(3KB)
--------index.html(434B)
--------lib()
----template-obj.min.js(1KB)
----LICENSE(1KB)
----template-obj.js(3KB)
----.gitignore(37B)
----README.md(3KB)
----.jshintrc(460B)
----bower.json(568B)

网友评论