www.XXXX.com?content=123のURLの内容。
initメソッドに包まれたjsの内容は、どのようなものです。
その中に(); 関数init(){ VARの theRequest = 新しいオブジェクト(); VaRの URL = location.search。 もし(url.indexOf(" ?"!)= - 1 ){ VAR STR = url.substr(1 ); STRS = str.split(" &" )。 用(VAR i = 0 ; iはstrs.lengthを<Iは++ ){ theRequest [STRS [I] .split(" = ")[ 0 ] =(STRを[I] .split(" = ")[ 1。]); } } のvar CC = theRequest [ ' コンテンツ' ]; //ここに単一引用符のタグとして、あるいはURLを変更パラメータ名 };