首页 \ 问答 \ Sencha Touch中的tpl和更新方法(tpl and update method in Sencha Touch)

Sencha Touch中的tpl和更新方法(tpl and update method in Sencha Touch)

在我的应用程序中,我使用的是tpl,但它不起作用:任何人都可以告诉我该怎么做以及我错在哪里?

内部配置:

{
    id: 'content',
    tpl: "<div class='attorney-details'>hi:{details}</div>"
},

我的Update方法是:

update: function(newRecord) {
    if (newRecord) {
        currentView=this.getRecord().data;
        this.down('#content').setData(newRecord.data);
    }
}

输出时甚至不打印"Hi" 。 此外,如果在更新方法中添加了警报,则不会执行该警报。 谢谢。


In my app I am using tpl but its not working: can any one tell me what to do and where I am wrong?

Inside config :

{
    id: 'content',
    tpl: "<div class='attorney-details'>hi:{details}</div>"
},

and my Update method is :

update: function(newRecord) {
    if (newRecord) {
        currentView=this.getRecord().data;
        this.down('#content').setData(newRecord.data);
    }
}

At output not even "Hi" is printed. Also, if an alert is added in the update method it is not executed. Thanks.


原文:https://stackoverflow.com/questions/18270242
更新时间:2022-09-12 12:09

最满意答案

您可以使用第三方框架(如Flurry)获取有关应用统计信息的更多详细信息。 您将无法检测用户是否卸载了该应用,但您可以在特定时间间隔内查看有多少唯一身份用户正在使用该应用。 您还可以查看用户已安装的操作系统版本。


You can get more details about app statistics by using 3rd party frameworks such as Flurry. You won't be able to detect if a user uninstalls the app, but you can see how many unique users are using the app in a specific interval. You can also see which OS version your users have installed.

相关问答

更多
  • 从“财务报告的苹果用户指南”(可在iTunes Connect页面底部找到): 期限结束后,我们不存储或重新生成数据(14个滚动日和13个滚动周); 如果您打算在将来使用该数据,则需要定期下载并存储此数据。 From the Apple User Guide for the Financial Reports (available at bottom of iTunes Connect page): We do not store or regenerate the data after the perio ...
  • 我想我明白你的问题。 您必须验证而不是提交。 要将您的应用程序上传到iTunes Connect,在管理器中,您必须“提交”您的存档。 这会将其上传到iTunes连接。 I think I understand you're problem. You must be validating instead of submitting. In order to upload your app to iTunes Connect, in organizer, you must "Submit" your arch ...
  • 您可以使用第三方框架(如Flurry)获取有关应用统计信息的更多详细信息。 您将无法检测用户是否卸载了该应用,但您可以在特定时间间隔内查看有多少唯一身份用户正在使用该应用。 您还可以查看用户已安装的操作系统版本。 You can get more details about app statistics by using 3rd party frameworks such as Flurry. You won't be able to detect if a user uninstalls the app, ...
  • 我不确定这是否是TestFlight中的一个错误,但是关闭然后再打开“TestFlight Beta Testing”开关。 只要你这样做,你所有的内部测试人员应该得到新的构建的通知。 另一种选择是简单地进入新的Build Details并保存它。 I'm not sure if this is a bug in TestFlight but toggle off and then on again the "TestFlight Beta Testing" switch. As soon as you d ...
  • 不是,不是。 Apple确实......崩溃报告。 我认为他们正在尝试提供帮助并总结报告或过滤掉经常不常出现的报告,但您不会在iTunes Connect中看到确切的数字,也不会看到所有崩溃。 我解决这个问题的方式 - 虽然我希望改进应用程序而不仅仅是收集指标 - 是在我的应用程序中安装一个崩溃报告器,它将报告发送回我自己控制的服务器。 (我在这里写了更多关于它的内容。) Not really, no. Apple does... something with the crash reports. I th ...
  • iTunes Connect App Analytics上的应用单元是实际的“购买”/下载。 总线一些用户可能永远不会打开您的应用程序 这就是为什么App Units可能高于Facebook的数字。 我假设至少对于iOS,Facebook只能在第一次启动应用程序时发送信息,而不是实际安装。 App Units on iTunes Connect App Analytics are the actual "purchases"/downloads. Bus some users might never eve ...
  • Apple说 尚未批准的应用无法删除; 相反,拒绝该应用程序。 应用程序必须至少有一个允许的版本才能删除。 一种解决方案是重命名该应用程序,然后通过创建一个新的名称来使用该名称。 Apple接受名称,然后应用程序将被审核。 参考: 如何删除正在等待上传的应用程序? Apple says Apps that have not been approved yet can’t be deleted; instead, reject the app. Apps must have at least one appr ...
  • iTunes Connect不是您创建配置文件的位置。 供应配置文件在iOS开发人员中心的Apple开发人员门户中创建。 然后在iTunes连接中创建用于上传到App Store的实际应用程序。 首次创建应用程序时,有许多必填字段。 甚至应用程序的图标和屏幕截图等内容也是必需的。 如果您还没有完成这些操作,那么无论您按保存多少次,都不会创建应用程序。 我想可能信息中缺少某些东西,所以它不会让你保存应用程序。 但是,如果应用程序已创建,那么您将收到一封电子邮件,告知您该应用程序已创建。 你收到电子邮件了吗? ...
  • 您应该在iTunesConnect上传App图标。 以1024x1024提供 https://developer.apple.com/library/ios/documentation/LanguagesUtilities/Conceptual/iTunesConnect_Guide/Chapters/FirstSteps.html#//apple_ref/doc/uid/TP40011225-CH19-SW9 You should upload App Icon at iTunesConnect. Pro ...
  • iTunes Connect提供了一个日期过滤器,用于显示特定时间段内安装的应用程序的时间。 您可以在这种情况下使用该过滤器。 iTunes Connect provide a date filter for how many time apps were installed during a particular time period. You can use that filter for this situation.

相关文章

更多

最新问答

更多
  • 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
  • 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
  • OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
  • 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
  • codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
  • 在计算机拍照在哪里进入
  • 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
  • No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
  • 单页应用程序:页面重新加载(Single Page Application: page reload)
  • 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
  • System.StackOverflow错误(System.StackOverflow error)
  • KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • C#类名中允许哪些字符?(What characters are allowed in C# class name?)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 在Angular 5中不是一个函数(is not a function in Angular 5)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • 常见的python rpc和cli接口(Common python rpc and cli interface)
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)