随笔分类 -  JavaScript

摘要:<!DOCTYPE html> <html> <meta charset="UTF-8" /> <head> <title>带有省略号的分页</title> <script src="http://libs.baidu.com/jquery/1.10.1/jquery.min.js"></scrip 阅读全文
posted @ 2019-02-17 09:16 zincredible 阅读(4826) 评论(2) 推荐(0)
摘要:$(document).on("click", ".navbar-nav li[link]", function() { nav.find('li').removeClass('active'); $(this).addClass('active'); //获取模块到顶部的距离 var id = $ 阅读全文
posted @ 2019-01-31 15:53 zincredible 阅读(1207) 评论(0) 推荐(0)
摘要:JavaScript中的this是指包含它(this)的函数作为方法被调用时所属于的对象 例如 全局函数默认是window对象 ,如果有一个全局函数 function checkResult(){ this } checkResult(); 此时this就指window对象,alert,consol 阅读全文
posted @ 2019-01-08 11:29 zincredible 阅读(168) 评论(0) 推荐(0)
摘要:1.request参数提交(Form提交),适用于GET/POST request参数传递都会转换成 id=123&fileName=test.name&type=culture_art这种形式,get请求会显示在url上,post不在url上显示 ajax写法: $.ajax({ url : /a 阅读全文
posted @ 2019-01-07 23:10 zincredible 阅读(1834) 评论(0) 推荐(1)