gaolinjie
V2EX  ›  问与答

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

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

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