gpt4 book ai didi

javascript - jQuery Mobile 事件 - 独立?

转载 作者:塔克拉玛干 更新时间:2023-11-02 20:37:40 25 4
gpt4 key购买 nike

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

我知道这是可能的,因为我用过这个:https://gist.github.com/743400在过去它工作...该文件基于 JQM 的 beta 甚至 alpha 版本,我想使用最新的...有什么想法吗?

最佳答案

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


对于 jquery mobile 1.1-stable 分支,以下对我有用:

  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.mobile
  4. 运行make js编译事件所需的模块
  5. 构建的版本将在 compiled/ 文件夹中可用

关于javascript - jQuery Mobile 事件 - 独立?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9417624/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com