XIYUETA.COM
源代码:
点击运行
<script src="../dist/xiyueta.min.js?v31"></script> <script> /* $.getUrlParam 获取URL中指定参数值 $.log() 在浏览器里显示内容 == document.write() */ var s=$.getUrlParam("http://www.xiyueta.com/case.asp?id=1","id"); $.log(s); var s=$.getUrlParam("http://www.xiyueta.com/api/action.asp?act=handle&id=3","act"); $.log(s); var s=$.getUrlParam("http://www.xiyueta.com/?act=1#","act"); $.log(s); </script>
运行结果