在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:rails/jquery-ujs开源软件地址:https://github.com/rails/jquery-ujs开源编程语言:JavaScript 94.2%开源软件介绍:Unobtrusive scripting adapter for jQueryThis unobtrusive scripting support file is developed for the Ruby on Rails framework, but is not strictly tied to any specific backend. You can drop this into any application to:
These features are achieved by adding certain "data" attributes to your HTML markup. In Rails, they are added by the framework's template helpers. Full documentation is on the wiki, including the list of published Ajax events. Requirements
If you don't use HTML5, adding "data" attributes to your HTML4 or XHTML pages might make them fail W3C markup validation. However, this shouldn't create any issues for web browsers or other user agents. Installation using the jquery-rails gemFor automated installation in Rails, use the "jquery-rails" gem. Place this in your Gemfile: gem 'jquery-rails' And run: $ bundle install Require both //= require jquery
//= require jquery_ujs Installation using npm.Run Installation using Rails and WebpackerIf you're using webpacker (introduced in Rails 5.1) to manage JavaScript assets, then you can add the jquery-ujs npm package to your project using the yarn CLI.
Then, from any of your included files (e.g. import {} from 'jquery-ujs' Installation using BowerRun UsageRequire both //= require jquery
//= require jquery-ujs How to run testsFollow this wiki to run tests. Contributing to jquery-ujsjquery-ujs is work of many contributors. You're encouraged to submit pull requests, propose features and discuss issues. See CONTRIBUTING. Licensejquery-ujs is released under the MIT License. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论