《Slides Dev Web》 07. jQuery# 07.jQuery # 19 décembre 2023 # Développement web il3 jQuery HE-Arc (DGR) 2022 ## jQuery • John Resig, 2006 • Bibliothèque JS, gratuit, OS (licence MIT) • Facilite le développement JS pour les src="https://code.jquery.com/jquery-3.1.1.min.js"> • Nos scripts • Syntax basique $(selecteur).action(); // $() est un raccourci pour jQuery() • Utilisation - callback : fonction de rappel avec 3 paramètres : 5thhttps://www.w3schools.com/jquery/jquery_ajax_load.asp * responseTxt * statusTxt * xhr • $.get(URL, callback) • $.post(URL, data, callback)0 码力 | 5 页 | 49.45 KB | 2 年前3
《Slides Dev Web》 06. HTTP & AJAX
en jQuery avec load()Let jQuery AJAX users = JSON.parse(myXHR.responseText); var myString = JSON.stringify(users); • Avec jQuery : var obj = jQuery.parseJSON('{"nom":"Berger"}'); alert(obj.nom); ## Fetch API • navigateurs ne le supportant pas • L'API Fetch est native et plus simple d'utilisation que jQuery fetch("fichier.json") .then(function(response) { return response.json() }) .then(function(json)
0 码力 | 11 页 | 91.09 KB | 2 年前3
Jupyter Notebook 6.4.7 Documentationaction should not be performed. For further details about the event object or event handling, see the jQuery docs. • If you don’t need a help or help_index field, you can simply pass a function as the second 60 sec, and 1 sec = 1000 ms var label = jQuery('0 码力 | 181 页 | 1.87 MB | 2 年前3
廖雪峰JavaScript教程插入DOM 6.2.3 删除DOM 6.3 操作表单 6.4 操作文件 6.5 AJAX 6.6 Promise 6.7 Canvas 7 jQuery 7.1 选择器 7.1.1 层级选择器 7.1.2 查找和过滤 7.2 操作DOM 7.2.1 修改DOM结构 7.3 事件 return 'foo'; 11. }; 把自己的代码全部放入唯一的名字空间 MYAPP 中,会大大减少全局变量冲突的可能。 许多著名的JavaScript库都是这么干的:jQuery,YUI,underscore等等。 ## 局部作用域 由于JavaScript的变量作用域实际上是函数内部,我们在for 循环等语句块中是无法定义具有局部作用域的变量的: 1. 'use 三方的JavaScript代码是允许的: 1. 2. 3. 4. 5. 6.1 浏览器对象 6. 7. 如果引入的第三方的JavaScript中存在恶意代码,则 www.foo.com 网站将直接获取到 www.example0 码力 | 264 页 | 2.81 MB | 1 年前3
Apache OFBiz Themes 17.12screen engine through an embedded technology. Currently themes present in Apache OFBiz use html5/jquery/css to do that. To realize that, a theme can define some properties, among them some can be necessary visualthemeid="BLUELIGHT" resourcetypeenumid="VT_STYLESHEET" resourcevalue="//common/js/jquery/plugins/asmselect/jquery.asmselect-1.0.4a-beta.css" sequenceid="02"> jquery/jquery-1.11.0.min.js" sequenceid="01">0 码力 | 16 页 | 164.72 KB | 2 年前3
前端开发者指南(2017)6.1.7 学习HTML和CSS1.6.1.8 学习搜索引擎优化1.6.1.9 学习JavaScript1.6.1.10 学习Web动画1.6.1.11 学习DOM、BOM和jQuery1.6.1.12 学习网页字体&图标1.6.1.13 学习可访问性相关知识 1.6.1.14 学习 web/浏览器 API 1.6.1.15 学习 JSON (JavaScript 学习网页寄存(通称虚拟主机) 学习前端开发 学习用户界面/交互设计 学习 HTML 和 CSS 学习搜索引擎优化 学习 JavaScript 学习 Web 动画 学习 DOM、BOM 和 jQuery 学习网页字体 & 图标 学习可访问性相关知识 学习 web/浏览器 API 学习 JSON (JavaScript 对象表示法) 学习 JS 模板 学习静态网页生成器 通过JS学习计算机科学 JShint,JSCS 也被整合进 ESLint)进行语法检查。 - 开发者弃 Sublime 和 Atom 转投 Visual Studio Code 编辑器,这成为一种趋势。 • jQuery 仍有热度,但使用率和关注度都在下滑。jQuery 3 已然发布,却无人问津。 • Vue.js 理所应当地吸收更多追随者。 • JavaScript 函数式编程和模式备受关注。 - 离线开发和渐进式 WEB 应用(PWA)步入主流。0 码力 | 164 页 | 6.43 MB | 2 年前3
Apache Wicket 7.x Reference Guidelibrary will find JQuery already loaded in the page: Url jqueyuiUrl = Url.parse("https://ajax.googleapis.com/ajax/libs/jqueryui/" + "1.10.2/jquery-ui.min.js"); resource.JQueryPluginResourceReference for those JavaScript resources that depend on JQuery. This class uses the JQuery version bundled with Wicket. ; resource.JQueryPluginResourceReference for those JavaScript resources that depend on JQuery. This class uses the JQuery version bundled with Wicket.  - Wikipedia for CORS ## Ajax Ajax, now well known I guess, in OFBiz we use jQuery for that. The mechanism is simple. On the source side: 1. When an user log in in an application screen engine through an embedded technology. Currently themes present in Apache OFBiz use html5/jquery/css to do that. To realize that, a theme can define some properties, among them some can be necessary visualthemeid="BLUELIGHT" resourcetypeenumid="VT_STYLESHEET" resourcevalue="/common/js/jquery/plugins/asmselect/jquery.asmselect-1.0.4a-beta.css" sequenceid="02">0 码力 | 81 页 | 1.77 MB | 2 年前3
Apache Wicket 10.x Reference Guidelibrary will find JQuery already loaded in the page: Url jqueyuiUrl = Url.parse("https://ajax.googleapis.com/ajax/libs/jqueryui/" + "1.10.2/jquery-ui.min.js"); resource.JQueryPluginResourceReference for those JavaScript resources that depend on JQuery. This class uses the JQuery version bundled with Wicket. 












