求一個正則表達式,為每一行增加行號. 最好是js的.
如:
if(page_id == current_page){ lnk = $("<span class='current'>" + appendopts.text + "</span>");}
處理后:
1 if(page_id == current_page){2 lnk = $("<span class='current'>" + appendopts.text + "</span>");3 }
[正則] 增加行號
慕田峪4524236
2018-12-07 06:20:36