Location.hrefping.html # The result of location. hash of the anchor value obtained by chen Jianping is as follows: chen Jianping location.hrefping.html? Chen Jianping? The result of location. href. search () is :? Chen Jianping can use substring (1) to obtain # Or? After the value, you can use the split () method
Location.href?'ping.html # chen = chen Jianping 'obtain the anchpoint value location. the hash result is: # chen = chen Jianping location.href='ping.html? Chen = chen jianping? The result of location. href. search () is :? Chen = chen Jianping can use substring (1) to obtain # Or? After the value, you can use the split () method
Location.href?'ping.html # chen = chen Jianping'
The result of location. hash is: # chen = chen Jianping.
Location.href?'ping.html? Chen = chen jianping'
? The result of location. href. search () is :? Chen = chen Jianping
Use substring (1) to obtain # Or? And then use the split () method to put multiple parameters into the data.
Var args = xx. split ('&')