• <bdo id='Xq6KC'></bdo><ul id='Xq6KC'></ul>
      <legend id='Xq6KC'><style id='Xq6KC'><dir id='Xq6KC'><q id='Xq6KC'></q></dir></style></legend>
    1. <small id='Xq6KC'></small><noframes id='Xq6KC'>

      1. <i id='Xq6KC'><tr id='Xq6KC'><dt id='Xq6KC'><q id='Xq6KC'><span id='Xq6KC'><b id='Xq6KC'><form id='Xq6KC'><ins id='Xq6KC'></ins><ul id='Xq6KC'></ul><sub id='Xq6KC'></sub></form><legend id='Xq6KC'></legend><bdo id='Xq6KC'><pre id='Xq6KC'><center id='Xq6KC'></center></pre></bdo></b><th id='Xq6KC'></th></span></q></dt></tr></i><div id='Xq6KC'><tfoot id='Xq6KC'></tfoot><dl id='Xq6KC'><fieldset id='Xq6KC'></fieldset></dl></div>
        <tfoot id='Xq6KC'></tfoot>

        更改#hash 标记以链接页面加载

        Change #hash tag to link on page load(更改#hash 标记以链接页面加载)

        <small id='Al6c3'></small><noframes id='Al6c3'>

        <legend id='Al6c3'><style id='Al6c3'><dir id='Al6c3'><q id='Al6c3'></q></dir></style></legend>
        <i id='Al6c3'><tr id='Al6c3'><dt id='Al6c3'><q id='Al6c3'><span id='Al6c3'><b id='Al6c3'><form id='Al6c3'><ins id='Al6c3'></ins><ul id='Al6c3'></ul><sub id='Al6c3'></sub></form><legend id='Al6c3'></legend><bdo id='Al6c3'><pre id='Al6c3'><center id='Al6c3'></center></pre></bdo></b><th id='Al6c3'></th></span></q></dt></tr></i><div id='Al6c3'><tfoot id='Al6c3'></tfoot><dl id='Al6c3'><fieldset id='Al6c3'></fieldset></dl></div>
          <tbody id='Al6c3'></tbody>
          • <bdo id='Al6c3'></bdo><ul id='Al6c3'></ul>
          • <tfoot id='Al6c3'></tfoot>

                  本文介绍了更改#hash 标记以链接页面加载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  如何使用javascript更改#标签+字符链接

                  How to change # tag + Character to link using javascript

                  This is going #right on the way
                  

                  This is going <a href="http://twitter.com/#!/search/right">right</a> on the way
                  

                  即使这样也是可以接受的

                  even this is also acceptable

                  This is going <a href="http://twitter.com/#!/search/right">#right</a> on the way
                  

                  不同类别和id中的#(哈希)标签的页面

                  The page lots's of # (hash) tag in different classes and id's

                  推荐答案

                  var string = "This is going #right on the way";
                  string.replace(/#(S*)/g,'<a href="http://twitter.com/#!/search/$1">$1</a>')
                  

                  演示: http://jsfiddle.net/dKm82/

                  这篇关于更改#hash 标记以链接页面加载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  quot;Status Code:200 OK (from ServiceWorker)quot; in Chrome Network DevTools?(“状态码:200 OK(来自 ServiceWorker)在 Chrome 网络开发工具中?)
                  How to set a header for a HTTP GET request, and trigger file download?(如何为 HTTP GET 请求设置标头并触发文件下载?)
                  Adding custom HTTP headers using JavaScript(使用 JavaScript 添加自定义 HTTP 标头)
                  SQL Query DocumentDB in Azure Functions by an integer not working(通过整数在 Azure Functions 中 SQL 查询 DocumentDB 不起作用)
                  Azure Functions [JavaScript / Node.js] - HTTP call, good practices(Azure Functions [JavaScript/Node.js] - HTTP 调用,良好实践)
                  Azure Functions - Import Custom Node Module(Azure Functions - 导入自定义节点模块)
                  <legend id='yFCwi'><style id='yFCwi'><dir id='yFCwi'><q id='yFCwi'></q></dir></style></legend>
                1. <small id='yFCwi'></small><noframes id='yFCwi'>

                      <tbody id='yFCwi'></tbody>

                      <i id='yFCwi'><tr id='yFCwi'><dt id='yFCwi'><q id='yFCwi'><span id='yFCwi'><b id='yFCwi'><form id='yFCwi'><ins id='yFCwi'></ins><ul id='yFCwi'></ul><sub id='yFCwi'></sub></form><legend id='yFCwi'></legend><bdo id='yFCwi'><pre id='yFCwi'><center id='yFCwi'></center></pre></bdo></b><th id='yFCwi'></th></span></q></dt></tr></i><div id='yFCwi'><tfoot id='yFCwi'></tfoot><dl id='yFCwi'><fieldset id='yFCwi'></fieldset></dl></div>
                      • <bdo id='yFCwi'></bdo><ul id='yFCwi'></ul>

                        1. <tfoot id='yFCwi'></tfoot>