1
editor.on('keyup',function(cm,event){
            if(!cm.state.completionActive && (event.keyCode||event.which) != 13 && (event.keyCode||event.which)>64 && (event.keyCode||event.which)<91 && !event.altKey && !event.ctrlKey &&!ExcludedIntelliSenseTriggerKeys[(event.keyCode || event.which).toString()] ){
                cm.showHint({hint:CodeMirror.hint.anyword, completeSingle: false, `alignWithWord:false});` 
            }
        })

抛出错误

TypeError:无法读取未定义的属性“anyword”

我已经导入了提示所需的必要插件文件,但仍然出现错误。

4

0 回答 0