• 请不要在回答技术问题时复制粘贴 AI 生成的内容
yaotian
V2EX  ›  程序员

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

  •  
  •   yaotian · Oct 21, 2012 · 3315 views
    This topic created in 5042 days ago, the information mentioned may be changed or developed.
    3 replies    1970-01-01 08:00:00 +08:00
    sohoer
        1
    sohoer  
       Oct 21, 2012
    给你吧,个人项目中的功能。
    下面代码填加到收藏夹,代码自己研究

    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); } })()
    yaotian
        3
    yaotian  
    OP
       Oct 21, 2012
    @sohoer 加到收藏夹?加到收藏夹怎么用呢?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3121 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 12:46 · PVG 20:46 · LAX 05:46 · JFK 08:46
    ♥ Do have faith in what you're doing.