定制 eltharin/juniorjs 二次开发

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

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

eltharin/juniorjs

最新稳定版本:V1.6.1

Composer 安装命令:

composer require eltharin/juniorjs

包简介

JuniorJS Bundle for symfony

README 文档

README

Junior JS Library

JR.ajax(url, options = {})

call an Ajax query

Manage Events

JR.Events.add (eventName, elementSelector, handler)

allow add an event on an HTML element but placed on document root to allow dispatching event on newest elements

JR.Events.dispatch(eventName, element, options = {})

dispatch the event

Manage Popup

let popup = new JR.Popup();
popup.load(data);

create a popup

set class openpopup on a link allow you to call differently a link,

simple clic open a popup with the page emedded or with a middle clic that open you a new page

you have to set your template with condition on

{%- if app.request.headers.get('X-Requested-With') != 'XMLHttpRequest' -%}
<!DOCTYPE html>
<html>
<head>
...
{%- endif -%}

take a look to my othr plugin Ajaxresponser allowing a route to be responded in ajaxmode (a json with message, errors, success, ...} or HTML page)

allow load a link in ajax and load in a html element :

Text

allow load a link in ajax and load in a new popup :

Text

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: GPL-3.0
  • 更新时间: 2024-03-11