The reference for setEndPoint msdn is:
TextRange. setEndPoint (sType, oTextRange)
OTextRange is another TextRange object
SType is a string type with four options
StartToEnd
StartToStart
EndToStart
EndToEnd
"A text range has two endpoints: one at the beginning of the text range and one at the end ."
Text range has two endpoints. One endpoint is at the beginning and the other is at the end.
<Pre class = "code" id = "ice" rows = "5" cols = "35"> how to delete the row of the cursor in textarea? Just like the row cutting function in Visual Studio. How do I delete the row of the cursor in textarea? Just like the row cutting function in Visual Studio. How do I delete the row of the cursor in textarea? Just like the row cutting function in Visual Studio. </Textarea> <input type = "button" onclick = "delline ()" value = "delete"/>
[Ctrl + A select all Note: If you need to introduce external Js, You need to refresh it to execute]