jQuery Mobile活动 - 独立? [英] jQuery Mobile events - standalone?

查看:63
本文介绍了jQuery Mobile活动 - 独立?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试获取jQuery Mobile事件( https://github.com/jquery/jquery-mobile/blob/master/js/jquery.mobile.event.js )作为一个独立的插件工作,但我似乎无法弄清楚我需要改变什么。

I'm trying to get the jQuery Mobile events(https://github.com/jquery/jquery-mobile/blob/master/js/jquery.mobile.event.js) to work as a standalone "plugin" but I can't seem to figure out what I need to change.

我知道这是可能的,因为我使用了这个: https: //gist.github.com/743400 过去并且它有效...该文件基于JQM的beta版甚至alpha版本,我想使用最新的...任何想法?

I know this is possible because I used this: https://gist.github.com/743400 in the past and it worked... that file is based on beta or even alpha release of JQM and I would like to use the latest... any ideas?

推荐答案

更新
您现在可以为jQuery mobile 1.2构建自定义程序包 http://jquerymobile.com/download-builder/ 并选择项目所需的活动

Update You can now build a custom package for jQuery mobile 1.2 http://jquerymobile.com/download-builder/ and select the Events that you need for your project

以下适用于jquery mobile 1.1-stable分支:

The following worked for me for jquery mobile 1.1-stable branch:


  1. 克隆来自github的repo https://github.com/jquery/jquery-mobile

  2. git checkout 1.1-stable

  3. 编辑第131行的Makefile https://github.com/jquery/jquery-mobile/blob/1.1-stable/Makefile#L131 来构建jquery.mobile.event而不是jquery。移动

  4. 运行 make js 编译事件所需的模块

  5. 内置版本将可在编译/ 文件夹中找到

  1. clone the repo from github https://github.com/jquery/jquery-mobile
  2. git checkout 1.1-stable
  3. edit the Makefile on line 131 https://github.com/jquery/jquery-mobile/blob/1.1-stable/Makefile#L131 to build jquery.mobile.event instead of jquery.mobile
  4. run make js to compile the modules necessary for events
  5. the built versions will be available in the compiled/ folder

这篇关于jQuery Mobile活动 - 独立?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆