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

有这样的网站例子吗?打开的页面中,鼠标点击内容,能得到选择内容的xpath

  •  
  •   yaotian · 2012-10-21 17:13:11 +08:00 · 2760 次点击
    这是一个创建于 4203 天前的主题,其中的信息可能已经有所发展或是发生改变。
    3 条回复    1970-01-01 08:00:00 +08:00
    sohoer
        1
    sohoer  
       2012-10-21 20:35:42 +08:00
    给你吧,个人项目中的功能。
    下面代码填加到收藏夹,代码自己研究

    javascript: (function() { if(window.box) { box.fn.init(); } else { var script = document.createElement('script'); script.setAttribute('type', 'text/javascript'); script.setAttribute('charset', 'UTF-8'); script.setAttribute('src', 'http://www.newcrawler.com/static/js/clip-min.js'); document.body.appendChild(script); } })()
    gfreezy
        2
    gfreezy  
       2012-10-21 21:51:36 +08:00
    yaotian
        3
    yaotian  
    OP
       2012-10-21 22:33:42 +08:00
    @sohoer 加到收藏夹?加到收藏夹怎么用呢?
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5095 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 03:51 · PVG 11:51 · LAX 20:51 · JFK 23:51
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.