【文件属性】:
文件名称:汉字转首字母简拼插件
文件大小:36KB
文件格式:ZIP
更新时间:2022-11-20 12:13:08
插件 的在在在在
汉字转首字母简拼插件
用法实例:
|
<form:input path="name" htmlEscape="false" lengthmax="100" class="form-control required"
</td>
|
|
<form:input path="pyjc" htmlEscape="false" lengthmax="100" class="form-control required"
</td>
|
引入js文件,定义此事件进行转换
function ConvertName(){
var keyword = $('#name').val();
var simply = pinyin.getCamelChars(keyword);
$('#pyjc').val(simply);
}
【文件预览】:
Convert_Pinyin.js