0
我有這樣的代碼:試圖開始與谷歌翻譯API和使用現成()
<script language="javascript" src="http://www.google.com/jsapi"></script>
<script language="javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.0/jquery.js"></script>
<script language="javascript">
$(document).ready(function() {
});
</script>
</head>
<body>
<form onsubmit="return false">
<input type="button" value="Translate" onclick="gtrans(this.form)" />
<p id="translation" style="border:1px solid #00f;padding:5px;width:400px">-</p>
</form>
</body>
當我裏面添加ready(){}
行google.load ("language", "1");
的形式不顯示,爲什麼?
問候
哈維
把它放在ready()函數外面 – Dalen 2011-05-17 12:04:49