请问如何判断是否处于汉字输入状态?(内空)

muren 2001-09-02 05:17:59
...全文
80 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
孟子E章 2001-09-03
  • 打赏
  • 举报
回复
ime-mode Attribute | imeMode Property

--------------------------------------------------------------------------------

Sets or retrieves the state of an Input Method Editor (IME).

Syntax

HTML { ime-mode : sMode }
Scripting object.style.imeMode [ = sMode ]

Possible Values

sMode String that specifies or receives one of the following values:
auto :
Default. IME is not affected. This is the same as not specifying the ime-mode attribute.
active :
All characters are entered through the IME. Users can still deactivate the IME.
inactive :
All characters are entered without IME. Users can still activate the IME.
disabled :
IME is completely disabled. Users cannot activate the IME if the control has focus.

Example

This example uses the ime-mode attribute.

<INPUT TYPE = text STYLE = "ime-mode:active" >


孟子E章 2001-09-03
  • 打赏
  • 举报
回复
javascript里不能判定!但可以应css打开或关闭中文输入法

87,904

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 JavaScript
社区管理员
  • JavaScript
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧