JavaScript, get page parameters

xiaoxiao2021-03-06  39

Function getQuery (Name) {var reg = new regexp ("(^ | &)" Name "= ([^ &] *) (& | $)"); var r = window.location.search.substr 1) .MATCH (REG); if (r! = Null) Return Unescape (R [2]); Return Null;}

Alert ('ActionType')); // Get the regular expression of the page name WINDOW.LOCATION.HREF.MATCH (/. ^?] *) /) [1]; Alert (window.location .href.match (/// (^ /? /] *) (/? | $) /) [1])

转载请注明原文地址:https://www.9cbs.com/read-78321.html

New Post(0)