zoukankan      html  css  js  c++  java
  • 从零开始学习Sencha Touch MVC应用之十七

    现在,让我们在app/data/ 目录下建立news.json 文件,并且从Sencha Touch Press添加一些新闻消息:

    [
        {
            "title": "Beyond jQuery: JavaScript Tools For The HTML5 Generation",
            "date": "November 09, 2011",
            "content": "One of the stated goals of HTML5, at least for some groups, is to replace the Flash plug-in, the gold standard for making sprites and letters dance across the screen."
        },
        {
            "title": "What Is the Best Mobile Platform for HTML5 Development?",
            "date": "November 10, 2011",
            "content": "The focus of the mobile world has turned to HTML5. Right now, HTML5 is positioning itself to be the No. 3 mobile platform behind Apple's iOS and Google's Android and we will see that evolution take place over the next couple of years."
        },
        {
            "title": "No Flash? No Problem",
            "date": "November 18, 2011",
            "content": "So what does the future hold for Flash? I imagine Flash eventually being used more as a creative tool than a delivery format. As Adobe continues to put more effort into exporting HTML5-ready assets from Flash Pro, it tells me the swf may be slowly dying for desktop, too."
        },
        {
            "title": "Adobe Flash Sites Rapidly Converted To HTML5 For iOS users",
            "date": "November 21, 2011",
            "content": "A developer using Sencha Touch reports that translating large existing websites built with Adobe Flash to HTML5 mobile sites accessible to iOS users can now be performed by 1 or 2 people in just three weeks."
        }
    ]


    用列表来显示存储器的数据


    下面我们将显示我们的新闻Next we’ll display our news.


    打开HomeIndexView.js 并且田间新的连接:

    html: '<a href="#News/index" class="menu-item">News</a>' +
          '<a href="#Home/about" class="menu-item">About</a>',


  • 相关阅读:
    java笔试面试题目收集(一)
    java--用 * 打印出各种图形(新手请进)
    TextView属性大赏
    Meterial Or Ios ?
    android开发之后端云bmob的使用
    关于android开发自定义view
    第二周作业——面向过程(或者叫结构化)分析方法与面向对象分析方法到底区别在哪里?
    移动APP开发使用什么样的原型设计工具比较合适?
    测试
    转:nohup命令及其输出文件
  • 原文地址:https://www.cnblogs.com/fyq891014/p/3294785.html
Copyright © 2011-2022 走看看