abc0123xyz

求大佬指点

  •  
  •   abc0123xyz · Oct 20, 2022 · 1453 views
    This topic created in 1492 days ago, the information mentioned may be changed or developed.

    如题,想从 html 中获取 token 的值,大概类似于下边的样子

    <!DOCTYPE html>
    <html>
    <body>
    
    <h2>xxx</h2>
    
    </body>
    <script>
    	function myFunction() {
        	token = "xxxxxxxx"
    	}
    </script>
    </html>
    
    
    jiurenmeng
    jiurenmeng
    Oct 20, 2022
    1
    token = "(.*?)"
    abc0123xyz
    abc0123xyz
    OP
    Oct 20, 2022
    2
    @jiurenmeng #1 感谢大佬
    wdssmq
    wdssmq
    Oct 23, 2022
    3
    @jiurenmeng token = "([^"]+)"

    感觉这样更科学些。。
    abc0123xyz
    abc0123xyz
    OP
    Oct 24, 2022
    4
    @wdssmq #3 感谢大佬
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1015 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 319ms · UTC 19:00 · PVG 03:00 · LAX 11:00 · JFK 14:00
    ♥ Do have faith in what you're doing.