Currently, webpage processing often encounters the problem of Address Bar parameters. Therefore, we have made a special method to modify the address bar parameters. For more information, see the current webpage, we often encounter problems in
Our project uses SunSean's idTabs, but the control in each tab triggers postback, or it is transferred back to other pages, so the Selected tab will be lost. My Indian colleague refused to use AJAX. Instead, he worked overtime today to write a demo
Method 1: Use the link as a string, break down the link according to the url format, and then obtain the corresponding parameter value.
Method 2: use regular expressions for direct matching.
Keyword: parameter: location. href, url, Link,
Function getUrlArg (seekArg) {var url = location. href; // use a regular expression to separate the parameters between the question mark and the well number, such as from the http://www.jb51.net/testjs.htm? P = 1 & t = 1 & u = 1 # p = 1 & t = 1 & u =
PHP url parameter acquisition problem, how to quickly obtain the required parameter http://www.abc.com/content/5176.asp? Page = 1 & 5176__2 # p
The current url is the link
I need to generate a link on the current page.
Http://www.abc.com/content/51
We generally know that url-based parameters are transmitted in get mode, but we can also use post-based transmission, especially when some interfaces are used. This article lists the methods implemented using php and Javascript. We generally know
.
Match any character except linefeed
\ W
Match letters, numbers, underscores, and Chinese characters
\ S
Match any blank space character
\ D
Matching number
^
Start position of matching characters
Whether it is front-end development or background design, developers often need to obtain information about the current or target website. This existing built-in object property can be called directly (The following is the reference code for getting
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->
VaR
Str
=
Loaderinfo. Parameters [
"
True_name
"
];
Note: The parameter name is. SWF ?... Address
In fact, it
VaR P = new parammanager ();
P. getvalue ('key ');
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->
Function
Parammanager (){
This
. Location
=
Window. location;
This
. Paramarray
Ratemax) {}else{ memcache_increment ($link, $key);}?>
Each refresh is changed without a cache
After caching
Demo Address http://niaochen006.sinaapp.com/zq.php
Cache time 20 seconds change once
What I want to achieve
In the "search options" launched by Google in May, there is a function that restricts search results by time, you can search by default for "anytime", "last year", "last week", "last", or "last 24 hours". However, this is still quite different from "
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.