zoukankan      html  css  js  c++  java
  • 搜索关键词

    <script>
    function fuzhi()
    {
       var name = GetE('txtName').value;
       if (name == null || name == "" || name == '输入关键词')
       {
            alert('请正确输入关键字查询');
            return false;
       }
       name = encodeURIComponent(name);
       window.parent.location = "/product/searchlist-" +name+'.html';
       return false;
    }

    function GetE(objectId) {
      if(document.getElementById && document.getElementById(objectId)) {
      // W3C DOM
      return document.getElementById(objectId);
      } else if (document.all && document.all(objectId)) {
      // MSIE 4 DOM
      return document.all(objectId);
      } else if (document.layers && document.layers[objectId]) {
      // NN 4 DOM.. note: this won't find nested layers
      return document.layers[objectId];
      } else {
      return false;
      }
     }

    </script>");

      一定要是\s,用URLRewriter时
        <RewriterRule>
          <LookFor>~/product/searchlist/([0-9]+)/([\S]+).html</LookFor>
          <SendTo>~/product/searchlist.aspx?PageNo=$1&amp;name=$2</SendTo>
        </RewriterRule>
       

  • 相关阅读:
    python入门-数据类型
    jmeter进行简单性能测试
    Charles抓包工具
    jemter分布式部署及linux下分布式脚本执行
    Java-List
    重载
    static关键字
    pycharm问题
    charles安装使用及问题
    安装pipenv
  • 原文地址:https://www.cnblogs.com/jimmychow/p/2266597.html
Copyright © 2011-2022 走看看