• 从零开始学习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>',


  • 相关阅读:
    VUE iframe消息通信postMessage
    sqlserver 增加新列并加备注说明备用
    实用的apipost 软件,登录token改变,其他请求也随之改变自带token请求设置
    介绍一下magic.net多租户的应用
    vue 给路由增加自定义信息meta属性
    hyperv 设置NAT网络备忘
    mybatis plus 多字段排序
    c#使用redis
    centos ssh连接卡在【To escape to local shell, press 'Ctrl+Alt+]'.】的解决方法
    java stream 转字符串数组
  • 原文地址:https://www.cnblogs.com/fyq891014/p/3294785.html
Copyright © 2020-2023  润新知