You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
rap2-delos/public/test/test.plugin.fetch.html

15 lines
504 B
HTML

<script src="//g.alicdn.com/thx/brix-deps/jquery@jquery/1.12.4/dist/jquery.js"></script>
<script src="//g.alicdn.com/thx/brix-deps/nuysoft@Mock/1.0.1-beta3/dist/mock.js"></script>
<div id="result"></div>
<script src="./test.request.js"></script>
<script>
const id = /id=(\d+)/.exec(location.search) || ['', 1]
if (id) {
$.getScript(`/app/plugin/${id[1]}`).then(() => {
$.getScript(`/libs/fetch.rap.js`).then(() => {
doRequest(window.RAP, window.fetch)
})
})
}
</script>