0
如何绑定Google翻译Durundal Shell.js,shell.html?Durundal谷歌翻译
HTML
<div id="google_translate_element"></div>
脚本
<script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
function googleTranslateElementInit() {
new google.translate.TranslateElement({ pageLanguage: 'en', autoDisplay: false }, 'google_translate_element');
}
我需要绑定与谷歌的Java脚本 –
的DIV ID,你应该把你的脚本' google_translate.html'并激发'compositionComplete'中的函数 –