0
<script type="text/javascript" src="http://www.google.com/jsapi">
在扩展程序中不起作用。其实我是想使用谷歌API的注音键盘 这样Google API PHONETIC键盘在扩展程序中不起作用
google.load("elements", "1", {packages: "keyboard"});
function onLoad() {
google.elements.keyboard.enableKeyCodeScheme(false);
new google.elements.keyboard.Keyboard(
[google.elements.keyboard.LayoutCode.MALAYALAM_PHONETIC],
['t']);
document.getElementById('t').focus();
}
google.setOnLoadCallback(onLoad);
manifest.json的权限似乎是罚款: - "permissions": ["tabs","http://*/*","https://*/*"],
还是安慰出现这样
非常感谢您的回答,这一变化我得到了另一个控制台错误** Uncaught ReferenceError:google没有定义**。这里提到的错误'google.load(“elements”,“1”,{packages:“keyboard”});' – Muhammed