Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/api/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Json Chrome API IME不工作_Json_Api_Google Chrome_Ime - Fatal编程技术网

Json Chrome API IME不工作

Json Chrome API IME不工作,json,api,google-chrome,ime,Json,Api,Google Chrome,Ime,我一直在尝试运行google的示例IME,但没有成功。问题是,它甚至没有执行。正如您在下面的代码中看到的,console.log应该至少给我一行反馈,而不是: var context_id = -1; // Copyright 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in th

我一直在尝试运行google的示例IME,但没有成功。问题是,它甚至没有执行。正如您在下面的代码中看到的,console.log应该至少给我一行反馈,而不是:

var context_id = -1;
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

var ime_api = chrome.input.ime;

var context_id = -1;

console.log("Initializing IME");  //THIS LINE I EXPECT TO SEE, NO MATTER WHAT
这些是我正在使用的文件,如果你想阅读它们:


有什么想法吗?

你的操作系统是什么?如果您使用的是Chrome操作系统,要启用输入法:

  • 加载未打包的扩展
  • 注销/登录
  • ctrl
    +
    shift
    切换输入法

  • 我想对于其他操作系统,也需要类似的“重启chrome”序列。

    首先,你需要运行chrome操作系统

    第二,确保您将语言设置为英语(美国),并选择输入法“测试输入法”。然后重新启动chromebook(或任何计算机)