Maison  >  Article  >  interface Web  >  两个html页面之间传递参数_html/css_WEB-ITnose

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

WBOY
WBOYoriginal
2016-06-24 11:39:37863parcourir

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;

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

Déclaration:
Le contenu de cet article est volontairement contribué par les internautes et les droits d'auteur appartiennent à l'auteur original. Ce site n'assume aucune responsabilité légale correspondante. Si vous trouvez un contenu suspecté de plagiat ou de contrefaçon, veuillez contacter admin@php.cn