leervton 发表于 2023-12-24 22:40:23

想/match匹配精确这个网页的地址,但匹配不上,不知道什么原因?

// ==UserScript==
// @name         继续教育学习
// @namespace    http://tampermonkey.net/
// @version      0.1
// @descriptiontry to take over the world!
// @author       You
// @match      https://v3.dconline.net.cn/student.html#/index/classStudy?courseId=60988832&course_id=41876
// @icon         https://dckj.ks3-cn-guangzhou.ksyun.com/ltedu3/20200511/560d877e-12c8-4aa0-863c-135fbd134a62.ico
// @require      https://code.jquery.com/jquery-3.7.1.min.js
// @require      ‪file://H:\VSCode\jquery-3.7.1.js
// @require      https://cdn.bootcdn.net/ajax/libs/blueimp-md5/2.9.0/js/md5.min.js
// @grant         unsafeWindow
// ==/UserScript==
function search(){
   alert("你好")
}
$(document).ready(function(){
    search()
})!(data/attachment/forum/202312/24/223245ffdjeocycd0l0t66.png)

steven026 发表于 2023-12-24 22:40:24

> // @match https://v3.dconline.net.cn/student.html

`#`代表网页内锚点,`#`后面的所有内容都会无法被解析

李恒道 发表于 2023-12-24 22:57:08

https://v3.dconline.net.cn/student.html#/index/classStudy?*呢

leervton 发表于 2023-12-25 11:47:32

李恒道 发表于 2023-12-24 22:57
https://v3.dconline.net.cn/student.html#/index/classStudy?*呢

不行的呀0.0

leervton 发表于 2023-12-25 11:48:02

steven026 发表于 2023-12-24 22:40
> // @match https://v3.dconline.net.cn/student.html

`#`代表网页内锚点,`#`后面的所有内容都会无 ...

有没有办法解决0.0

steven026 发表于 2023-12-25 12:05:51

leervton 发表于 2023-12-25 11:48
有没有办法解决0.0

// @match https://v3.dconline.net.cn/student.html*
页: [1]
查看完整版本: 想/match匹配精确这个网页的地址,但匹配不上,不知道什么原因?