猿问
请问flash是否可以这样传递参数给html页面,让js接收呢?
as2,flash中有按钮,
on (release) { getURL("main.html?h=2", "_blank","post"); }
炎炎设计
浏览 118
回答 1
1回答
慕码人8056858
静态HTML页面似乎不行;换成GET用JavaScript倒是可以接收上~好比访问 http://localhost/example.html?foo=bar ,可以用 window.location.search 获取到 ?foo=bar,然后再稍加处理和截取即可~
0
0
0
随时随地看视频
慕课网APP
相关分类
JavaScript
我要回答