Javascript、Ajax:如何可视化Boomerang.js结果?
好的,我可以将代码片段添加到我的测试页面并传入参数。没问题。 如何可视化通过查询字符串传递到我的信标url的结果参数?我被踩了 如果我的测试页面中有:Javascript、Ajax:如何可视化Boomerang.js结果?,javascript,performance,web,visualization,boomerang,Javascript,Performance,Web,Visualization,Boomerang,好的,我可以将代码片段添加到我的测试页面并传入参数。没问题。 如何可视化通过查询字符串传递到我的信标url的结果参数?我被踩了 如果我的测试页面中有: <script type="text/javascript"> BOOMR.init({ beacon_url: "http://localhost/myvisualizationpage.php", site_domain: "http://localhost/mytestin
<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>
BOOMR.init({
信标url:“http://localhost/myvisualizationpage.php",
站点\u域:“http://localhost/mytestingpage.php",
用户_ip:“我的虚拟盒桥接ip地址”,
自动运行:错误
});
如何使此报告(以下)显示在我的“可视化”页面中
此页面需要ms才能加载
测量的其他计时器:
t_resp=ms
t_page=ms
您到该服务器的带宽为kbps(±%)
您对此服务器的延迟为±ms
其他参数:
rt.start=导航
bw_时间=
查看此链接以获取参考:查看文档目录中的howtos.js:
您可以创建一个名为
results
的空div,并让howtos.js用信标的内容填充该div。就是这样!非常感谢。不过有一件事:应该签出github中的代码。目前正在我的locahost上运行的代码是我从你的BlueMoon页面上获取的。我的意思是,只有boomerang.js文件的源代码。你的有效。我从github那里得到的一个没有。我必须调查一下。我不确定我最后一次更新我的黑客网页是什么时候。现在链接断了
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>