<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>无标题文档</title>
<script type="text/javascript">
function CharToVoice()
{
var Text=document.getElementById('text').value;
var VoiceObj = new ActiveXObject("Sapi.SpVoice");
VoiceObj.Speak(Text);
}
</script>
</head>
<body>
请输入文本:<br/>
<textarea id="text"></textarea><br/><br/>
<input type="submit" value="阅读文本" onClick="CharToVoice()">
</body>
</html>仅支持IE浏览器
<!-- 三个核心方法 openDatabase:这个方法使用现有数据库或创建...
二期项目中生成的简历二维码是使用canvs生成的,微信浏览器中不能识别二维码,只能扫码。懒的换phpqrcode,于是转canvs。//设置一个url var url = "{yun:}$config.sy_weburl{/yun}/mingli/index....
//构造函数 function Box(name,age){ this.name=name; this.age=age; this.run=function(){ return this.name+'--'+this.age; } } var&nbs...
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>录制</title> <script ...
ES5中编写函数,为了给参数默认值,必须在函数体内对参数判断,着实揪心。ES6好多了。<script type="text/javascript"> function run(width = 100, height&...
在es5的时候变量只能通过+号拼接,es6种允许将变量放在大括号之中。有点类似php和c#对字符串的操作。 <script type="text/javascript"> &n...