两个html页面之间传递参数_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:39:37
Original
870 people have browsed it

var href = document.URL;
href = decodeURI(href);
var oText1 = href.split("=")[1];


eg:  a.html   

local.href = 'www.aaa.com/index.php?a=1';

b.html

var href = document.URL;
href = decodeURI(href);
var oText1 = href.split("=")[1];

//运用上面的代码,oText1 = 1;

版权声明:本文为博主原创文章,未经博主允许不得转载。

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!