阿赛
sailei1 · 共 56 篇文章
淘宝 触屏主页面 菜单
效果图 代码: <!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</title> <style> #J_Shade { width: 100%; height: 100%; position: fixed; top: 0; le…
2013-11-05 14:48 · CSS · 评论(0)
JS 获取 未来时间
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <title>js获取日期:前天、昨天、今天、明天、后天</title> </head> <body> <script language="JavaScript" type="text/javascript"> Date.prototype.DateAdd = function(strInterval, Number) { var dtTmp = this; switch (strInterval) { case 's' :re…
2013-07-29 17:45 · 编程 · 评论(0)
Sencha Touch chart 时间轴
JSon 时间数据格式 {"data":[{"name":"00:05","sf":"1"},{"name":"00:15","sf":"1"},{"name":"00:25","sf":"1"},{"name":"00:35","sf":"1"},{"name":"00:45","sf":"1"},{"name":"00:55","sf":"1"},{"name":"01:05","sf":"1"},{"name":"01:15","sf":"1"},{"name":"01:25","sf":"1"},{"name":"01:35","sf":"1"},{"name":"01:45","s…
2013-06-28 17:33 · Sencha Touch · 评论(0)
Sencha Touch 复杂 store
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: 'stri…
2013-06-25 11:26 · Sencha try · Sencha Touch · phonegap · 评论(0)
gird 翻页
//<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.feature.sorter' ]); Ext.application({ name: 'room', requires: [ 'ext.messagebox',…
2013-05-15 14:57 · Sencha Touch · 编程 · 评论(0)
Sencha Touch TextArea 支持滑动
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.handleTouchListener = Ext.bind(this.handleTouch, this), fa…
2013-04-12 16:41 · Sencha Touch · 评论(1)
Sencha Touch history 理解
/** * @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 an {@link Ext.ap…
2013-02-20 14:20 · Sencha Touch · 评论(0)
Sencha Touch history
/** * @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 an {@link Ext.ap…
2013-02-20 14:19 · Sencha Touch · 评论(0)
JS 遍历map List
//json 传过来的map List 类型遍历 for(var key in map){ console.log(map[key] +' '+key); } for(var i in list){ console.log(list[i]); }
2013-01-30 17:15 · 编程 · 评论(4)
Sencha Touch Carousel 自动切换
setInterval(function () { crsl.next();//切换的方法 if (crsl.getActiveIndex() === crsl.getMaxItemIndex()) { crsl.setActiveItem(0); } }, 2000); // setInterval()
2013-01-25 11:20 · Sencha try · Sencha Touch · 评论(0)
Sencha Touch Carousel 去除底栏
/*global Ext:false */ Ext.application({ launch: function () { Ext.create('Ext.Carousel', { defaults: { styleHtmlContent: true }, // defaults indicator: false, //Carousel 去除底栏 fullscreen: true, items: [ { html: 'red', style: 'background-color:#f00;' }, { html: 'orange', style: 'background-color:#ffb…
2013-01-25 11:17 · Sencha try · 评论(0)
Sencha Touch userAgent 判断
[{ name: 'enginename', value: ext.browser.enginename }, { name: 'engineversion', value: ext.browser.engineversion }, { name: 'issecure', value: ext.browser.issecure }, { name: 'isstrict', value: ext.browser.isstrict }, { name: 'name', value: ext.browser.name }, { name: 'useragent', value: ext.brows…
2013-01-25 11:05 · Sencha try · Sencha Touch · 评论(0)
Sencha Touch 2 Menu
主页面 /** * @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 : 'horizontal' }, items:[{ title : '首页', iconcls : 'home', load…
2013-01-23 17:01 · Sencha Touch · 评论(3)
Sencha Touch Ajax CORS 跨域
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 su…
2013-01-21 11:28 · Sencha Touch · 编程 · 评论(0)
Sencha Touch Carousel
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%;"});
2012-12-26 14:37 · Sencha Touch · 评论(1)