【文件属性】:
文件名称:utf8:UTF-8 字符编码的实用程序
文件大小:8KB
文件格式:ZIP
更新时间:2021-06-21 17:06:52
JavaScript
锚点/UTF-8
UTF-8 模块具有用于 UTF-8 字符编码的实用程序。
安装
成分
$ component install anchorjs/utf8
沃洛
$ volo add anchorjs/utf8
用法
将 JavaScript 字符串编码为 UTF-8。
utf8 . encode ( 'JavaScript' ) ;
将 UTF-8 字符串解码为 JavaScript 字符串。
utf8 . decode ( 'JavaScript' )
兼容性
成分
该模块使用格式。 要包含在组件构建中,请使用 :
component build -u component-amd
测试
要在浏览器中运行测试,请为所需的浏览器执行 Make 目标:
$ make test-chrome
$ make test-firefox
$ make test-safari
【文件预览】:
utf8-master
----.gitignore(106B)
----package.json(856B)
----Makefile(2KB)
----LICENSE(1KB)
----utf8.js(2KB)
----README.md(1KB)
----component.json(205B)
----bower.json(505B)
----test()
--------utf8.test.js(2KB)
--------auto()
--------www()