Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问某个网站中search是使用post请求的,我该如何实现 #346

Open
1 task done
YuJunZhiXue opened this issue Jan 21, 2025 · 4 comments
Open
1 task done
Labels
bug Something isn't working

Comments

@YuJunZhiXue
Copy link

Extension information

“gufengmh.js”

Steps to reproduce

1.关于我再写插件时出现search是post请求的情况,请问有示例嘛,我需要查看如何实现
谢谢

Miru version

“1.8.1”

Other details

No response

Acknowledgements

  • I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open issue.
@YuJunZhiXue YuJunZhiXue added the bug Something isn't working label Jan 21, 2025
@YuJunZhiXue
Copy link
Author

@OshekharO @appdevelpo

@appdevelpo
Copy link
Member

request
fetch

@YuJunZhiXue
Copy link
Author

request fetch

说实话我没看明白,能给我大概讲一下嘛

@appdevelpo
Copy link
Member

原本的 js 引擎是沒有請求的功能的
fetch 是 flutter_js 附加的一個功能,用法是:

await fetch(<Url>, {
            method: "POST",
            body: <Body>,
          })

request 是 miru 額外附加的功能,用法是:

 await this.request(<Uri>, {
            method: "POST",
			data: <Data>,
			headers: {
				"Miru-Url":<Host>,
				
			}
		});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants