<textarea class=“area” cursor="{{cursorIndex}}"
focus="{{true}}" name=“content” selection-start="{{cursorIndex}}"
selection-end="{{cursorIndex}}" bindfocus=“bindfocus”
bindinput=“getTextareaValue” value="{{content}}"
show-confirm-bar="{{false}}" />
getTextareaValue(e) {
let { value, cursor } = e.detail;
this.content = value;
this.cursorIndex = Number(cursor);
console.info(‘cursorIndex’, this.cursorIndex, ‘typeof’, typeof this.cursorIndex, ‘content’, content);
this.$apply();
},
不起作用呀???