我正在使用Sencha Touch 2.3.1开发跨平台应用程序并将其部署到我使用Cordova 3.3.0的本机平台
我按照 本教程.在本教程之后,我能够在模拟器中运行.apk文件.现在我想在我的设备上运行该应用程序.即使我使用USB将设备连接到笔记本电脑,我也无法在设备上运行该应用程序.任何帮助将不胜感激.
我想使用linkedin API集成登录,我们如何使用sencha touch 2.1.1使用linkedin Oauth?
我一直无法弄清楚如何手动触发DOM事件.例如,在这里,我尝试触发li的"click"事件
Ext.DomQuery.select('#mapRoutesPanel ol li:nth-child('+(index+1)+')')[0].click();
Run Code Online (Sandbox Code Playgroud)
它在谷歌浏览器上运行良好,但是当我构建相同应用程序的Android原生应用程序时,它给了我错误
Uncaught TypeError: Object #<HTMLLIElement> has no method 'click'
Run Code Online (Sandbox Code Playgroud) 我正在尝试使用Windows上的"sencha generate app MyApp ../MyApp"命令创建一个新的sencha touch应用程序.
我做了以下事情:
下载最新的sencha SDK并将其解压缩到"D:\ MyProjects\sencha-touch-2.1.0-gpl"文件夹中.
在"D:\ MyProjects\SenchaSDKTools-2.0.0-beta3"文件夹中安装了sencha SDK工具.
确保系统环境变量"SENCHA_SDK_TOOLS_2_0_0_BETA3"确实指向"d:\ MyProjects下\ SenchaSDKTools-2.0.0-β3"
根据sencha文档,我应该在sencha SDK或应用程序文件夹中运行sencha命令.
所以,如果我的CD到文件夹"d:\ MyProjects下\煎茶触摸-2.1.0-GPL"和运行"煎茶生成的应用程序MyApp的../MyApp",我得到这样的警告信息
**"[WARN] The current working directory (D:\MyProjects\sencha-touch-2.1.0-gpl) is not a recognized Sencha SDK or application folder. Running in backwards compatible mode."**
Run Code Online (Sandbox Code Playgroud)
为什么sencha不认识这个SDK文件夹?
看着代码"sencha.js"文件包括作为SDK工具的一部分,似乎煎茶正在寻找一个".senchasdk"文件.
所以我从示例文件夹中的一个子文件夹尝试了相同的命令(因为此文件夹包含.senchasdk文件)
现在我最终得到了一个错误
"node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: Cannot find module 'D:\MyProjects\sencha-touch-2.1.0-gpl\command\sencha.js'
at Function._resolveFilename (module.js:332:11) …
Run Code Online (Sandbox Code Playgroud) 我使用Sencha touch 2.1.0构建了一个sencha touch应用程序,现在我正在尝试使用此处提供的说明构建它:http://cclerville.blogspot.in/2013/01/sencha-touch-21-phonegap-220- android_3.html
但是这个错误消息的构建失败了,有人可以帮助我吗?
$ sencha app build package && build/myshop/android/cordova/build
Sencha Cmd v3.0.2.288
[ERR] Please ensure this command was executed from a valid application directory
[ERR] Unable to locate 'app.dir' config property from sencha.cfg
Run Code Online (Sandbox Code Playgroud)
我的sencha Cmd目录中的sencha.cfg包含以下条目:
framework.name=touch
framework.version=2.1.0.447
framework.classpath=${framework.dir}/src
# This is the minimum required Sencha Cmd version:
framework.cmd.minver=3.0.0.141
# This is the current version of the Sencha Cmd at the time of this SDK release:
framework.cmd.version=3.0.0.250
Run Code Online (Sandbox Code Playgroud) 我有一个基于Sencha Touch v2.0.x的项目,我正在使用Sencha Architect 2.0进行研究.现在,我已经更新煎茶建筑师到2.1,并想更新我的项目使用煎茶触摸2.1.x的.我怎样才能做到这一点?有某种转换器吗?
sencha-touch sencha-touch-2 sencha-architect sencha-touch-2.1
嗨,我需要定义一个全局变量,以便在我的应用程序的任何地方使用.我声明一个全局变量的baseUrl在我app.js.请参阅下面的app.js
//<debug>
Ext.Loader.setPath({
'Ext': 'touch/src',//Location of the sencha touch source files
'bluebutton': 'app',
});
//</debug>
Ext.application({
name: 'bluebutton',//Application Path, all classes in you app. For eg blueButton.view.Main.case sensitive
views: ['Main',
'BlueButton.CouponMain',
'BlueButton.CouponList',
'BlueButton.CouponList2',
'BlueButton.CouponList3',
'BlueButton.TransactionMain',
],
stores : [
'BlueButton.GlobalVariable',
],
models : ['BlueButton.GlobalVariable',
'BlueButton.MemberDetail',
],
controllers: ['Main',
'BlueButton.MemberList',
],
requires: [
'Ext.MessageBox',
],
icon: {
'57': 'resources/icons/Icon.png',
'72': 'resources/icons/Icon~ipad.png',
'114': 'resources/icons/Icon@2x.png',
'144': 'resources/icons/Icon~ipad@2x.png'
},
isIconPrecomposed: true,
startupImage: {
'320x460': 'resources/startup/320x460.jpg',
'640x920': 'resources/startup/640x920.png',
'768x1004': 'resources/startup/768x1004.png',
'748x1024': …
Run Code Online (Sandbox Code Playgroud) 我想使用服务器提供的数据制作嵌套的购物类别列表,如下所示:
{
"status":{"statusCode":15001},
"data":[
{"itemId":1, "name":"Men", "subCategories":[
{"itemId":2, "name":"Clothes", "subCategories":[
{"itemId":3, "name":"Formals", "leaf":true,"subCategories":[]},
{"itemId":4, "name":"Casual", "leaf":true,"subCategories":[]},
{"itemId":5, "name":"Sports", "leaf":true,"subCategories":[]}
]},
{"itemId":6, "name":"Accessories", "subCategories":[
{"itemId":7, "name":"Formals", "leaf":true,"subCategories":[]},
{"itemId":8, "name":"Casual", "leaf":true,"subCategories":[]},
{"itemId":9, "name":"Sports", "leaf":true,"subCategories":[]}
]}
]},
{"itemId":10, "name":"Women", "subCategories":[
{"itemId":11, "name":"Clothes", "subCategories":[
{"itemId":12, "name":"Formals", "leaf":true,"subCategories":[]},
{"itemId":13, "name":"Casual", "leaf":true,"subCategories":[]},
{"itemId":14, "name":"Ethnic", "leaf":true,"subCategories":[]}
]},
{"itemId":15, "name":"Shoes", "subCategories":[
{"itemId":16, "name":"Hells", "leaf":true,"subCategories":[]},
{"itemId":17, "name":"Wedges", "leaf":true,"subCategories":[]},
{"itemId":18, "name":"Sports", "leaf":true,"subCategories":[]}
]}
]}
]
}
Run Code Online (Sandbox Code Playgroud)
由于树结构被包裹在data
元素中,并且子节点被包装在subCategories
不同的标签中,data
所以我想预先处理这些数据,以便可以通过Nested List
直接使用这样的响应来使用它:
{
"categories":[
{"itemId":1, "name":"Men", …
Run Code Online (Sandbox Code Playgroud) 有没有人知道或知道有关sencha touch 2中函数执行顺序的文章?我认为这将有助于我们,初学者,很多人知道我们的代码放在哪里.
所以我想知道一些事情,例如,从控制器/模型/视图自动调用哪些函数以及何时以及以何种顺序和最后的函数(init,initialize,launch,applyX,updateX - 这种魔术函数).
将澄清我相信的许多事情.谢谢.
如何在sencha touch的标签面板中获取活动或选定的标签索引?
我tabpanel
在我的应用程序中使用。
sencha-touch-2.1 ×10
extjs ×5
sencha-touch ×4
cordova ×2
android ×1
extjs4.1 ×1
json ×1
oauth ×1