博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Sencha touch 中的一段源码匿名中定义Function并调用
阅读量:6823 次
发布时间:2019-06-26

本文共 1777 字,大约阅读时间需要 5 分钟。

1 /*  2   3 This file is part of Sencha Touch 2  4   5 Copyright (c) 2012 Sencha Inc  6   7 Contact:  http://www.sencha.com/contact  8   9 Commercial Usage 10 Licensees holding valid commercial licenses may use this file in accordance with the Commercial Software License Agreement provided with the Software or, alternatively, in accordance with the terms contained in a written agreement between you and Sencha. 11  12 If you are unsure which license is appropriate for your use, please contact the sales department at http://www.sencha.com/contact. 13  14 */  15 (function() {  16     function write(content) {  17         document.write(content);  18     }  19   20     function meta(name, content) {  21         write('
'); 22 } 23 24 var xhr = new XMLHttpRequest(); 25 xhr.open('GET', 'app.json', false); 26 xhr.send(null); 27 28 var options = eval("(" + xhr.responseText + ")"), 29 scripts = options.js || [], 30 styleSheets = options.css || [], 31 i, ln, path; 32 33 meta('viewport', 'width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no'); 34 meta('apple-mobile-web-app-capable', 'yes'); 35 meta('apple-touch-fullscreen', 'yes'); 36 37 for (i = 0,ln = styleSheets.length; i < ln; i++) { 38 path = styleSheets[i]; 39 40 if (typeof path != 'string') { 41 path = path.path; 42 } 43 44 write('
'); 45 } 46 47 for (i = 0,ln = scripts.length; i < ln; i++) { 48 path = scripts[i]; 49 50 if (typeof path != 'string') { 51 path = path.path; 52 } 53 54 write('

 

转载于:https://www.cnblogs.com/laj12347/archive/2013/03/16/2962608.html

你可能感兴趣的文章
squid
查看>>
《Cloud Native 》云原生技术汇总
查看>>
记忆sed的命令
查看>>
hybird 跨平台移动app开发
查看>>
mysql用SQLyog导入数据时报错(文件太大)
查看>>
Shell 相关技巧的总结应用(1)
查看>>
oc代码风范
查看>>
VS2010插件及快捷键持续更新
查看>>
技术栈累积
查看>>
nginx处理别人域名解析到你的ip
查看>>
jQuery的简单小结
查看>>
LNMP架构(架构介绍,mysql安装,php安装,nginx介绍)
查看>>
Linux下查看用户列表
查看>>
svn图标显示问题
查看>>
卷积神经网络在图像分割中的进化史:从R-CNN到Mask R-CNN
查看>>
OpenSSH详解
查看>>
JavaScript Tips
查看>>
继续上章节的ospf重分布实验演示一
查看>>
RHEL6 64位ASM方式安装oracle 11gR2(二)
查看>>
玩转日志第一步,通过fluentd转存nginx日志
查看>>