我有空白頁上此javascript:如何從URL中獲取數字?
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"
Java'!=='JavaScript ... – BenM
Java是以Javascript的什麼車是地毯... – RRikesh
或像蜜蜂一樣的啤酒? – DarkBee