当前位置: 首页 > news >正文

网站开发用什么系统比较好?网站优化提升速度

网站开发用什么系统比较好?,网站优化提升速度,wordpress主题首页文件,网站js特效每当在 Android 移动设备上调试网页时#xff0c;开发人员往往都会不自觉陷入调试的泥潭中去。《Android开发指南》提供了一个解决方案#xff0c;却有点繁琐复杂。因此#xff0c;许多 Web 开发人员会倾向于使用类似 Firefox Firebug 的或像 WebKit 的 Web Inspector 之类的… 每当在 Android 移动设备上调试网页时开发人员往往都会不自觉陷入调试的泥潭中去。《Android开发指南》提供了一个解决方案却有点繁琐复杂。因此许多 Web 开发人员会倾向于使用类似 Firefox Firebug 的或像 WebKit 的 Web Inspector 之类的工具进行调试因为它们的确容易使用而且功能强大。不过即使开发人员使用了这些工具但又有另外一个问题就是调试的结果与最终设备上显示的完全不同。对此我们决定去创建一套属于自己的解决方案——就是根据 Android 团队所提出标准解决方案衍生出来的这么一个工具——而实际上却又要简单得多的工具。我们称它为“RemoteJS”RemoteJS 允许您调试真正运行在 Android 设备中 JavaScript 代码或者说就是一个在你工作站上所运行的仿真器。 Developers often run into debugging hurdles when testing web pages for Android mobile devices. And, while the Android Developers Guide provides a solution, it’s a bit cumbersome and complex. So, many web developers often turn to tools like Firefox’s Firebug or Webkit’s Web Inspector because they are easy to use, powerful, and convenient. However, what developers often find when using these tools is that the end result is quite different on the actual device. We decided to create our own solution — a tool based on the standard solution proposed by the Android team, but much simpler to use. We call it RemoteJS, a tool that enables you to debug your JavaScript code while running on an Android device or emulator from your workstation. Build RemoteJS 构建 RemoteJS 程序是一个相当直截了当的过程。首先请确认您已安装了 Qt 框架。然后在Sencha 实验室源码库全新的“Android 工具”那里下载我们 RemoteJS 源代码。构建桌面应用程序如下 Building the application is a fairly straight forward process. First, confirm that you haveQt framework installed. Then, download the RemoteJS source code from our brand new Android Tools repository on Sencha Labs.Build the desktop application as follows: [plain] view plaincopy git clone git://github.com/senchalabs/android-tools.git   cd android-tools/remotejs/src/desktop   qmake  make    接着需要做的的就是安装 Android SDK将设备联入计算机或启动你的模拟器。下面的截图是位于模拟器旁边一个的 RemoteJS 工具用来检测来自Sencha Touch 的例子 Next, all you need to do is install the Android SDK, plug your device in (or launch your emulator), and you’re ready to go. Here’s a screenshot of the RemoteJS tool running next to an emulator, inspecting anexample from Sencha Touch: 该程序会自动安装一个包包的名字与设备上的名称相同。这个工具实际上是代替 Android 浏览器的网页加载器。由于两款程序都是使用同一款的 Web 浏览器引擎所以从程序员角度看不需要顾忌那些一致性的担心。用于正是这两个应用程序相同。欲了解工作原理及实施细则请参阅自述文件。只需在控制台上输入 URL 就可以打开网址。如果你输入不包括开头的协议就默认是“www”的。如果你连接超过一个以上的设备您将会在一个列表中作出选择。同样当您断开连接的设备时它会侦测这一事件然后它会回落到刚才唯一连接着的设备。然后等待直到你再次连接下一个设备。请注意要输出一些内容你需要使用console.log。 The program automatically installs a package with the same name on the device.  This tool will actually be the one loading your page, instead of the Android browser.  This doesn’t represent any concern from the developer’s perspective, since the web engine component that is used is exactly the same on both applications. For further details on how it works and the implementation details, please refer to theREADME. To open a specific URL, just enter it on the console.  If you don’t include the protocol, only addresses starting with “www” will be validated.  If you have more than one attached device, you’ll be presented with a list to choose from.  Similarly, it will detect when you disconnect the device already being used.  It will then fall back to the only attached device left, if that’s the case, or wait until you connect one again. Please note that in order to actually get some output back, you need to make use of console.log. 编写远程调试的脚本 Scriptable Remote Debugging 我们认为既然 GUI 版本的工作那么好于是我们可以写类似而且无缝的东西。主要目标是充分利用 Python 中已选择实现的语言自动化页回归测试。为此写一个Android 调试桥Android Debug BridgeADB的 Python 模块便可以非常灵活地从您的主机上写脚本。自然一个 RemoteJS 外壳版本也写在 adb 模块的顶部。它侦听 stdin 输入的 JavaScript 命令然后输出结果到 stdout。这里马上就有一个例子调试另一个Sencha Touch 的例子 We thought that since the GUI version worked so well, we could write something similar that would run headlessly.  The main goal was to automate page regression tests, taking full advantage of Python, the chosen implementation language.  For that, anAndroid Debug Bridge (adb)Python module was written, which allows for very flexible scripting from your host. Naturally, a shell version of RemoteJS was also written on top of the adb module.  It listens for JavaScript commands on stdin and output results to stdout.  Here’s the tool in action, debugging another Sencha Touch example: 未来 Coming Up 源代码不断在变化我们计划为这些工具注入更多的功能。欢迎你以任何方式参与贡献。adb Python模块将有可能远程自动注射设备上记录的事件并可在任何时候进行截图。这将使线性的自动检查一致性成为可能。所以敬请关注并不妨 clone 我们公共库上的Android 工具包然后亲自试一试。所有可用都遵循 MIT 许可。 The source code is changing constantly, and we plan to extend the capabilities of these tools.  You’re more than welcome to contribute in any way. With the adb Python module, it will be possible to remotely automate the injection of recorded events on the device and grab screenshots at any point.  This will allow automated verification of behavior consistency along time. Stay tuned and please feel free to clone our android-tools public repository to play around with the tools and code.  All is available under the MIT license. REFERENCES:http://blog.csdn.net/zhangxin09/article/details/7069583
http://www.pierceye.com/news/844592/

相关文章:

  • 深圳南山区网站建设公司站长工具seo综合查询 分析
  • 互粉的网站是怎么做的网站建设公司利润怎么样
  • 个人网站平台搭建咸阳企业做网站
  • 租用外国服务器网站网站建设电子商务论文选题方向
  • 网站建设那种语言好wordpress 首页添加链接
  • NET开发网站开发工程师招聘潍坊市网站建设公司
  • 自己开发网站怎么盈利开发游戏需要多少资金
  • 先域名 还是先做网站塘厦
  • 企业公众号以及网站建设wordpress 代码块样式
  • 网站源码搭建教程大同建设银行保安招聘网站
  • 无锡网站设wordpress营销模板
  • 建站哪个好一点wordpress直达按钮
  • 卢松松网站的百度广告怎么做的小程序开发成都公司
  • 导航网站头部代码android开发者官网
  • 网站设计需求分析报告做漫画的网站有哪些
  • 做什么网站吸引人sinaapp wordpress 固定链接
  • 东莞做网站怎么样搜狐综合小时报2022113011
  • 校园网站的意义融资渠道
  • 做网站上海公司自己制作一个网站需要什么软件
  • 铜川做网站电话app开发程序
  • 自助建微网站备案后修改网站名称
  • 免费网站正能量网站如何后台管理
  • 网站开发的质量标准网站如何做自适应
  • 黄南州wap网站建设公司wordpress里面怎么加链接
  • 五分钟自己创建网站的方法免费试用网站空间
  • 安徽平台网站建设找哪家辽宁建设工程信息网审核
  • 余姚住房和建设局网站10元备案域名购买
  • 企业网站制作公司盈利做支付行业招代理一般上什么网站
  • 网站制作电话wordpress支持PHP吗
  • 天津网站推广宣传拓者设计吧室内设计