• Oboe 提升web 用户体验以及性能


    Oboe  地址:http://oboejs.com/ 

    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 体验以及性能还是有比较好的帮助的。

      

  • 相关阅读:
    使用XStream解析xml
    分享功能
    上拉加载 下拉刷新
    点击button倒计时
    正则表达式验证手机号码
    第三方登陆
    test
    横向滑动菜单HorizontalScrollView
    slidingmenu侧滑侧单
    2017/4/25 afternoon
  • 原文地址:https://www.cnblogs.com/rongfengliang/p/5590683.html
Copyright © 2020-2023  润新知