<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
<script type="text/javascript" src="ChinesePY.js">
</script>
</head>
<body style="font-size:12px">
<form>
输入内容: <input type="text" οnkeyup="pym.innerHTML = sjd.GetJP(this.value);allpym.innerHTML=sjd.GetQP(this.value);
staffpym.innerHTML=sjd.GetHP(this.value);" /> <br />
拼 音 码: <span id="pym"></span><br />
拼音全码: <span id="allpym"></span><br />
混 拼 码: <span id="staffpym"></span>
</form>
</body>
</html>
需要引入的ChinesePY.js下载地址:https://download.csdn.net/download/stone0215/10923300