好的,我可以将代码片段添加到我的测试页面并传入参数。没问题。 如何可视化通过查询字符串传递到我的信标 URL 的结果参数?我被踩住了。
如果我的测试页面中有:
<script type="text/javascript">
BOOMR.init({
beacon_url: "http://localhost/myvisualizationpage.php",
site_domain: "http://localhost/mytestingpage.php",
user_ip: "My Virtual Box Bridged IP Address",
autorun: false
});
</script>
如何让此报告(如下)显示在我的“可视化”页面中?
This page took <x> ms to load
Other timers measured:
t_resp = <x> ms
t_page = <x> ms
Your bandwidth to this server is <x>kbps (±<x>%)
Your latency to this server is <x>±<x>ms
Other parameters:
rt.start = navigation
bw_time = <x>
查看此链接以供引用:http://hacks.bluesmoon.info/boomerang/doc/howtos/howto-6.html
最佳答案
查看文档目录中的howtos.js:https://developer.akamai.com/tools/boomerang/docs/tutorial-howtos.html
您可以创建一个名为 results
的空 div,并让 howtos.js 使用信标的内容填充该 div。
关于JavaScript、Ajax : How to visualize Boomerang. js 结果?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21611023/