javascript里不能判定!但可以应css打开或关闭中文输入法

解决方案 »

  1.   

    ime-mode Attribute | imeMode Property--------------------------------------------------------------------------------Sets or retrieves the state of an Input Method Editor (IME).SyntaxHTML { ime-mode : sMode }  
    Scripting object.style.imeMode [ = sMode ] Possible ValuessMode 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. ExampleThis example uses the ime-mode attribute.<INPUT TYPE = text STYLE = "ime-mode:active" >