所以你可以设置 ace 编辑器的值setValue
但设置值后,编辑器会选择编辑器的整个值。如何禁用此功能?这意味着当我将 ace editor 的值设置为Hello world
,它不会突出显示Hello world
setValue后可以使用第二个参数来控制光标位置
editor.setValue(str, -1) // moves cursor to the start
editor.setValue(str, 1) // moves cursor to the end
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)