定制 pith-front/pith-pack-jquery 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

pith-front/pith-pack-jquery

最新稳定版本:0.2.1

Composer 安装命令:

composer require pith-front/pith-pack-jquery

包简介

Pack jQuery for Pith

README 文档

README

Pack jQuery for Pith

About

This project packs jQuery so that it can be used with the Pith Framewok.

For info on jQuery, see the jQuery website at https://jquery.com/

For info on Pith, see the Pith website at https://pith-framework.org/

Install

Install to an existing Pith Framework project

Use Composer to install pack to the vendor folder.

php composer.phar require pith-front/pith-pack-jquery

Add new route to you Route List:

public array $routes = [
    // Other routes....
    // ...
    
    // Add route to call jQuery from
    ['route', 'GET', '/resources/vendor/library/jquery/{filepath:.+}', '\\PithFront\\PithPackJquery\\JqueryResourceRoute'],
];

To add jQuery to the page from PHP, call addScript( ) in a View Requisition.

(For the last parameter use 'library-for-layout' if jQuery needs to be loaded with the theme scripts and styles, otherwise use 'library-for-page' to load with the current page-specific scripts and styles.)

$this->addScript('jQuery', '/resources/vendor/library/jquery/jquery-3.6.4/jquery-3.6.4.min.js', 'library-for-page');

To add jQuery in HTML, do:

<script src="/resources/vendor/library/jquery/jquery-3.6.4/jquery-3.6.4.min.js"></script> <!-- jQuery -->

Licensing Info

The legal info below was current at the time of writing. Future/Newer versions may be licensed or copyrighted differently

Sizzle.js

jQuery 3.6.4

  • jQuery 3.6.4 (included inside pith-pack-jquery)
  • Released under the MIT license. (Also Includes Sizzle.js https://sizzlejs.com/)
  • Copyright (c) OpenJS Foundation and other contributors.
  • Site: https://jquery.com/

jQuery 3.7.1

  • jQuery 3.7.1 (included inside pith-pack-jquery)
  • Released under the MIT license. (Also Includes Sizzle.js https://sizzlejs.com/)
  • Copyright (c) OpenJS Foundation and other contributors.
  • Site: https://jquery.com/

Ian's jQuery Toolbox

jQuery 4.0.0-beta

  • jQuery 4 Beta
  • Copyright (c) OpenJS Foundation and other contributors.
  • Site: https://jquery.com/

pith-pack-jquery

统计信息

  • 总下载量: 218
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 1
  • 开发语言: JavaScript

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-02-05

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固