- 浏览: 127402 次
- 性别:
- 来自: 北京
最新评论
-
MIMIko:
怎么显示少了一个文件呢?跑步起来
Sencha Touch 2 Menu -
daydayupx:
有完整的代码吗?1240500584@qq.com
Sencha Touch Carousel -
JAVA一小菜:
您好,我想问下,为什么我从官网下载下来的sencha touc ...
Sencha Tuch Spket1.6.23 IDE 配置 -
zengdingshan:
请回复zdsxsc@163.com
Sencha Touch 2 Menu -
zengdingshan:
你好,这个demo运行不起来,请问有什么特殊配置吗
Sencha Touch 2 Menu
文章列表
淘宝 触屏主页面 菜单
- 博客分类:
- CSS
效果图
代码:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</t ...
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>js获取日期:前天、昨天、今天、明天、后天</title>
</head>
<body>
<script language="JavaScript" type="text/javascript">
Date.p ...
JSon 时间数据格式
{"data":[{"name":"00:05","sf":"1"},{"name":"00:15","sf":"1"},{"name":"00:25","sf":"1"},{"name":"00:35","sf":"1"},{&q ...
Ext.define('Contact.model.Titles', { extend: 'Ext.data.Model', config: { fields: [ { name: 'itemTitle',type: 'string'}, { name: 'itemValue',type: 'string'}, ], belongsTo: 'Agency' } });
Ext.define('Contact.model.Agency', { extend: 'Ext.data.Model', config: { fields: [ { name: 'agencyId',type: 's ...
//<debug>
Ext.Loader.setPath({
'Ext': 'touch/src',
'room': 'app',
'Ext.ux.touch.grid': 'Ext.ux.touch.grid'
});
//</debug>
Ext.require([
'Ext.ux.touch.grid.List',
'Ext.ux.touch.grid.feature.Feature',
'Ext.ux.touch.grid.feat ...
TextArea ios 支持滑动
Ext.define('Sai.view.TextArea', {
extend: 'Ext.form.TextArea',
xtype:'scrollTextArea',
initialize: function() {
this.callParent();
this.element.dom.addEventListener(
Ext.feature.has.Touch ? 'touchstart' : 'mousedown',
this.handle ...
/**
* @author Ed Spencer
* @private
*
* Manages the stack of {@link Ext.app.Action} instances that have been decoded, pushes new urls into the browser's
* location object and listens for changes in url, firing the {@link #change} event when a change is detected.
*
* This is tied to ...
/**
* @author Ed Spencer
* @private
*
* Manages the stack of {@link Ext.app.Action} instances that have been decoded, pushes new urls into the browser's
* location object and listens for changes in url, firing the {@link #change} event when a change is detected.
*
* This is tied to ...
//json 传过来的map List 类型遍历
for(var key in map){
console.log(map[key] +' '+key);
}
for(var i in list){
console.log(list[i]);
}
setInterval(function () {
crsl.next();//切换的方法
if (crsl.getActiveIndex() === crsl.getMaxItemIndex()) {
crsl.setActiveItem(0);
}
}, 2000); // setInterval()
/*global Ext:false */
Ext.application({
launch: function () {
Ext.create('Ext.Carousel', {
defaults: {
styleHtmlContent: true
}, // defaults
indicator: false, //Carousel 去除底栏
fullscreen: true,
items: [
...
[{
name: 'engineName',
value: Ext.browser.engineName
}, {
name: 'engineVersion',
value: Ext.browser.engineVersion
}, {
name: 'isSecure',
value: Ext.browser.isSecure
...
主页面
/**
* @Author sai
*/
Ext.define("Sencha.view.Main", {
extend : 'Ext.tab.Panel',
xtype : 'Main',
//requires: ['Sencha.view.MenuButton','Sencha.view.MenuItemButton'],
config : {
tabBar : {
docked : 'bottom'
},
scrollable :{
direction : 'ho ...
CORS
全称:Cross-Origin Resource Sharing
在ST的 文档中是这么写的
A relatively new capability of modern browsers is called CORS, which stands for Cross-Origin Resource Sharing. This allows you to send requests to other domains without the usual security restrictions enforced by the browser. Sencha Touch 2 has s ...
var el = carousel.element;
var b= el.down("div[class='x-carousel-indicator x-carousel-indicator-horizontal x-floating x-carousel-indicator-dark']:nth-child(1)");
b.set({"style":"right: 0;width: 25%;"});