推荐学习书目
› Learn Python the Hard Way
Python Sites
› PyPI - Python Package Index
› http://diveintopython.org/toc/index.html
› Pocoo
值得关注的项目
› PyPy
› Celery
› Jinja2
› Read the Docs
› gevent
› pyenv
› virtualenv
› Stackless Python
› Beautiful Soup
› 结巴中文分词
› Green Unicorn
› Sentry
› Shovel
› Pyflakes
› pytest
Python 编程
› pep8 Checker
Styles
› PEP 8
› Google Python Style Guide
› Code Style from The Hitchhiker's Guide
Hansah
V2EX  ›  Python

求助各位大佬:点击元素后返回 0 怎么破。。。

  •  
  •   Hansah · Mar 23, 2018 · 2368 views
    This topic created in 3109 days ago, the information mentioned may be changed or developed.
    <a class='dz' onclick='check_dai(153398)' href='javascript:(0)'>点 赞</a>

    对应的 JS:
    function check_dai(record_id){
    document.form_main.action = 'bidinfo.jsp?record_id='+record_id;
    document.form_main.op.value='op_submit';
    document.form_main.submit();
    }


    点击这个元素后直接返回个 0。。。喵喵喵???浏览器直接点击的话会出 alert 提示投票成功
    3 replies  •  2018-03-23 15:48:59 +08:00
    Telegram
        1
    Telegram  
       Mar 23, 2018 via iPhone   ❤️ 1
    那你用什么点的?最终肯定有个请求啊,自己构造,然后发送请求呗
    cuzfinal
        2
    cuzfinal  
       Mar 23, 2018
    href='javascript:;'
    unknownservice
        3
    unknownservice  
       Mar 23, 2018
    javascript:void(0)
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   925 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 19:22 · PVG 03:22 · LAX 12:22 · JFK 15:22
    ♥ Do have faith in what you're doing.