gaolinjie
V2EX  ›  问与答

请教js如何用正则表达式处理html

  •  
  •   gaolinjie · Sep 26, 2013 · 2987 views
    This topic created in 4770 days ago, the information mentioned may be changed or developed.
    类似v2ex这种 @gaolinjie 和 http://www.cnbeta.com/articles/254207.htm 这种处理效果

    我现在要用jquery的 xxx.html(content)来输出html,对content想用js正则表达式来处理@和url达到上面的效果,不知道怎么操作,请教大家。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2858 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 06:47 · PVG 14:47 · LAX 23:47 · JFK 02:47
    ♥ Do have faith in what you're doing.