cool jQuery tips

$().slideToggle("slow/fast") //move the object

$().animate({,}) //cool animation tool function

$().stop()

$().hide(100,callback)  //attribute to start after hide finish

$().slideUp().slideDown()  //connect various function to one object

text(),html(),val(),attr("href")  //attribute of object

$().find()  //find children... ...

$("div p").first()  //find first p in div

$().load()  //load outer file

$.get(url,callback)  //url:address  callback :(data status)

$.post(url,data,callback)  //data:send to server  callback:same as get

$.noConflict()  //jQuery to substitute $

时间: 2024-12-24 03:38:25

cool jQuery tips的相关文章

jquery提示信息 tips

1 <%@ page language="java" contentType="text/html; charset=UTF-8" 2 pageEncoding="UTF-8"%> 3 <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> 4 <% 5 String path = request.getC

12个JQuery小贴士

返回顶部 使用JQuery的 animate 和 scrollTop 方法可以创建简单地返回顶部的动画: // Back to top $('a.top').click(function (e) { e.preventDefault(); $(document.body).animate({scrollTop: 0}, 800); }); HTML中得有一个按钮: <!-- Create an anchor tag --> <a class="top" href=&q

26 个 jQuery使用技巧

The use of the jQuery library is growing and growing(just released jQuery 1.4), more and more people are using this useful javascript library. This means that more and more useful jQuery tips, tricks and solutions are coming available. That’s why i c

JS-日期框、下拉框、全选复选框

<!-- 下拉框 --><link rel="stylesheet" href="static/ace/css/chosen.css" /> <!-- 日期框 --><link rel="stylesheet" href="static/ace/css/datepicker.css" /> <!-- 日期框 --> <script src="stati

sdcms留言提交

引入这两个js <script src="{webroot}lib/validator/jquery.validator.js"></script><script src="{webroot}lib/tips/jquery.tips.js"></script> 提交页面插入下方JS<script> $(".formname").validator( { stopOnError:true,

SSM框架+Javamail发送邮件

本博客介绍基于SSM框架(Spring4.0+SpringMVC+Mybatis)组合的Javamail应用,邮箱的话基于腾讯的QQ邮箱,其实也是Foxmail邮箱 先要了解一下SMTP协议和SSL加密 SMTP:称为简单邮件传输协议(Simple Mail Transfer Protocal),目标是向用户提供高效.可靠的邮件传输.SMTP是一种请求响应的协议,也就是客户机向远程服务器发送请求,服务器响应,监听端口是25,所以其工作模式有两种:发送SMTP,接收SMTP SSL加密:用来保障浏

login.jsp

<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> <% String path = request.getContextPath

javascript工具函数

第一部分 JavaScript工具函数 转义特殊字符为html实体   HtmlEncode: function(str){ return str.replace(/&/g, '&').replace(/\"/g, '"').replace(/</g, '<').replace(/>/g, '>').replace(/'/g, '&apos;'); }, 验证是否为有效的手机电话号码   IsMobile: function(str){

50 Must-have plugins for extending Twitter Bootstrap

转自:http://tutorialzine.com/2013/07/50-must-have-plugins-for-extending-twitter-bootstrap/ 50 Must-have plugins for extending Twitter Bootstrap Martin Angelov July 10th, 2013 You most certainly know about Twitter Bootstrap – the popular front end frame