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.mock.html

16 lines
490 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/mock.rap.js`).then(() => {
doRequest(window.RAP)
})
})
}
</script>