gaolinjie
V2EX  ›  问与答

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

  •  
  •   gaolinjie · Sep 26, 2013 · 2888 views
    This topic created in 4690 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   ·   3561 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 04:35 · PVG 12:35 · LAX 21:35 · JFK 00:35
    ♥ Do have faith in what you're doing.