我在空白页上有这个 javascript:
Please show this number to your supplier:
<script>
document.write(document.URL);
</script>
所以它显示
"Please show this number to your supplier: http://www.exaple.com/invoices/123456789"
如何仅从 url 中提取数字以便我得到这个?
"Please show this number to your supplier: 123456789"