用正则表达式格式化html标签的代码

复制代码 代码如下:






格式化






试试获得selection的top,然后加上div的scrollTop,然后除以行高
a
b
>c
d
e
f>
 onclick="alert('g')">g










你可能感兴趣的:(用正则表达式格式化html标签的代码)