• 欢迎访问苗景云的博客
jquery判断字符串中是否包含特定字符的方法var Cts = "bblText";  if(Cts.indexOf("Text") >= 0 ) {      alert('Cts中包含Text字符串');  }
发布:苗景云 | 查看全文 | 浏览(1477) | 分类:IT技术&设计 | 评论(0) | 2019年07月08日
html页面:<html> <head> <meta http-equiv="content-type" content="text/html;charset=utf-8" /> <script type="text/javascript" src="jquery-1.8.2.min.js"></script
发布:苗景云 | 查看全文 | 浏览(1830) | 分类:IT技术&设计 | 评论(0) | 2019年06月18日

范例:注意使用delegate

/ajax判断会员登录

$(function ($) {

var screenWidth = $(window).width();

if (screenWidth < 1024) {

发布:苗景云 | 查看全文 | 浏览(1475) | 分类:IT技术&设计 | 评论(0) | 2018年11月16日

jquery距离底部100象素时层消失


 $(window).scroll(function() {
        var x = $(document).scrollTop() + $(window).height() - $("#scrolltip").height();
        if (x + 100 > $(document).height()) {
            $("#scrolltip").hide();
        } else {
            $("#scrolltip").show();
        }
    });


发布:苗景云 | 查看全文 | 浏览(1537) | 分类:IT技术&设计 | 评论(0) | 2018年11月05日

$(function(){

var SWidth = $(window).width();

if(SWidth >= 1024 ){

$("#second_nav .scroller").removeAttr("style");

发布:苗景云 | 查看全文 | 浏览(1685) | 分类:IT技术&设计 | 评论(0) | 2018年10月31日

$(function(){

var lefttoolH = $("#lefttool .left-stick-wp").offset().top;

$(window).scroll(function(){

var scroH = $(this).scrollTop();

发布:苗景云 | 查看全文 | 浏览(1472) | 分类:IT技术&设计 | 评论(0) | 2018年10月23日
« 之后的文章苗景云的博客
<< 向左走,向右走 >>
更早的文章 »