V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
laomo
V2EX  ›  反馈

@Livid 关于搜索的一点建议

  •  
  •   laomo · 2013-11-27 20:09:33 +08:00 · 2929 次点击
    这是一个创建于 3810 天前的主题,其中的信息可能已经有所发展或是发生改变。
    当前的搜索基于v2ex.com,所以由于子域名比较多,搜索记录会有很多重复。

    建议修改搜索基于当前访问的子域名。。

    dispatch = function() {
    var q = document.getElementById("q");
    if (q.value != "") {
    window.open('http://www.google.com/search?q=site:'+window.location.host+'/t%20' + q.value, "_blank");
    }
    return false;
    };
    5 条回复    1970-01-01 08:00:00 +08:00
    xatest
        1
    xatest  
       2013-11-27 20:35:18 +08:00
    iislong
        2
    iislong  
       2013-11-27 20:39:51 +08:00
    这是个好建议
    l0wkey
        3
    l0wkey  
       2013-11-27 20:59:01 +08:00
    https 吧...省的每次都要手打https:
    ritksm
        4
    ritksm  
       2013-11-27 21:09:34 +08:00
    确实遇到了子域名重复的问题...lax.v2ex.com、pagespeed.v2ex.com啥的
    caomu
        5
    caomu  
       2013-11-27 21:55:23 +08:00
    赞同使协议匹配当前协议。用http访问的就打开http的搜索,用https的就打开https的搜索。只要在js里改成无协议的 // 就行了。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1759 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 00:44 · PVG 08:44 · LAX 17:44 · JFK 20:44
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.