随笔分类 - jQuery
jquery学习之路
摘要:解决方案: 打开VS Code 文件 -> 首选项 -> 设置 -> 在 settings.json 中编辑 在 settings.json 中,加入: "php.executablePath": "E:/wamp64/bin/php/php7.0.10/php.exe", "php.validat
阅读全文
摘要:依赖于jQuery的库,称为jQuery插件,其它的插件概念与之一致
阅读全文
摘要:缺少环境配置, 程序下载地址如下: https://www.microsoft.com/zh-cn/download/confirmation.aspx?id=30679 点击下载,下载完成后,双击程序安装即可。
阅读全文
摘要:var arr = [1, 3, 5,7,9]; jQuery.each(arr, function(key, value){ if(key 2){ return true; } console.log(key,value); }) ; 上段代码等价于: var arr = [1, 3, 5,7,9
阅读全文
摘要:// 真数组转伪数组 [].push.apply(obj,arr); // 伪数组转真数组 [].slice.call(obj);
阅读全文
摘要:<script src="js/jquery-1.12.4.js"></script><script> window.onload = function (ev) { /* jQ入口函数传入不同参数得到的实例 1.传入 '' null undefined NaN 0 false 2.传入html片段
阅读全文
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="wi
阅读全文
摘要:musicSeekTo: function(value){this.audio.currentTime = this.audio.duration*value; }, musicVoiceSeekTo: function(value){this.audio.volume = value; } 改为:
阅读全文
摘要:以下是错误的写法: // 监听复选框的点击事件 $(".content_list").delegate(".list_check", "click"), function(){ }; 正确 (注意括号的位置): // 监听复选框的点击事件 $(".content_list").delegate(".
阅读全文
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="wi
阅读全文
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="wi
阅读全文
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="wi
阅读全文