Oboe 提升web 用户体验以及性能
2016-06-16 13:21
399 查看
Oboe 地址:http://oboejs.com/
1.安装 bower
bower install oboe
2.使用,ajax 模式
3. stream 模式
4. API 手册:
http://oboejs.com/api
5. angular 插件:
https://github.com/RonB/angular-oboe
注意:本地测试可能没有什么效果,但是如果放在服务器上,效果就可以看出来了
对于web 体验以及性能还是有比较好的帮助的。
1.安装 bower
bower install oboe
2.使用,ajax 模式
oboe('/myapp/things.json') .done(function(things) { // we got it }) .fail(function() { // we don't got it });
3. stream 模式
oboe('/myapp/things.json') .node('foods.*', function( foodThing ){ // This callback will be called everytime a new object is // found in the foods array. console.log( 'Go eat some', foodThing.name); }) .node('badThings.*', function( badThing ){ console.log( 'Stay away from', badThing.name); }) .done(function(things){ console.log( 'there are', things.foods.length, 'things to eat', 'and', things.nonFoods.length, 'to avoid'); });
4. API 手册:
http://oboejs.com/api
5. angular 插件:
https://github.com/RonB/angular-oboe
注意:本地测试可能没有什么效果,但是如果放在服务器上,效果就可以看出来了
对于web 体验以及性能还是有比较好的帮助的。
相关文章推荐
- UI Design
- 学习随笔
- opencv寻找轮廓
- 二维数组m*n的鞍点
- 比特币的涨势就像火箭。短短几周,已经逼近 5000元。太贵了? 可以点击下面链接,免费获得比特币
- iOS开发Tap点击的区域问题。
- sqlserver禁止management studio的自动提交事务(转)
- Django -model的字段类型清单
- bind参数绑定
- Linux crontab任务计划服务
- 在AndroidStudio中使用Lambda表达式
- ssh 免密码登录---问题
- 2016-6-16 SSH
- Javascript缓存API
- iOS8使用UIVisualEffectView实现模糊效果
- Java8:Stream概念
- java基础-String使用
- Http协议
- java获取时间戳的方式 和几种方式速度对比
- JavaScript常用正则表达式(定时更新)