sencha touch 在视图中显示一个html页面

来源:互联网 发布:135端口可以关闭吗 编辑:程序博客网 时间:2024/05/16 19:40

不过不能搜索,只能简单的展示而已。

代码来至于oreilly示例

Ext.define('app.view.about.About', {    alternateClassName: 'about',    extend: 'Ext.Container',    xtype: 'about',    config: {        cls: 'info',        scrollable: {            direction: 'vertical',            directionLock: true        },        url: 'http://www.baidu.com/'    },     initialize: function () {        Ext.Ajax.request({            url: this.config.url,            success: function (rs) {                this.setHtml(rs.responseText);            },            scope: this        });    }});
0 0
原创粉丝点击