作者langrisser19 (lenny)
看板Flash
标题Re: [问题] ActionScript_读URL中变数_加入连结网址
时间Sun May 11 15:21:32 2008
要知道url的话
不一定要靠flash
请爱用ExternalInterface
交给外部java script来抓
抓完再回传就可以了
如果我的网址是
http://www.123.com.tw:8080/lenny/index.php?user=langrisser
location.href =
http://www.123.com.tw:8080/lenny/index.php?user=langrisser
location.protocol = http
location.hostname = www.123.com.tw
location.host = www.123.com.tw:8080
location.port = 8080
location.pathname = /lenny/index.php
location.search = ?user=langrisser
挑一个要用的
return回去就好了
应该不会太麻烦啦 :p
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 122.126.66.128
1F:推 etrexetrex:喔喔! 是梦幻模拟战 05/11 16:30
2F:→ langrisser19:哈哈 对啊 就是梦幻模拟战 没想到有人知道 真感动 05/11 18:26
3F:推 norton159:但是两个变数,该怎麽让他正确的指向我要的那一个呢? 05/11 21:44