Home > Web Front-end > HTML Tutorial > What is the difference between these two methods? _html/css_WEB-ITnose

What is the difference between these two methods? _html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:41:27
Original
933 people have browsed it

1、使用Jquery Moblie的可以事件不行
$(document).on('pageinit',function() {
var mySwiper = new Swiper('.swiper-container', {
pagination: '.swiper-pagination',
        nextButton: '.swiper-button-next',
        prevButton: '.swiper-button-prev',
       paginationClickable: true,
       spaceBetween: 30 ,
       centeredSlides: true,
        autoplay: 2500,
        autoplayDisableOnInteraction: false
    }); '.swiper-container',{
    pagination : '.swiper-pagination',
    grabCursor: true,
    paginationClickable: true,
    mousewheelControl:true,// பியுக்க்கு贮
    autoplayDisableOnInteraction: false,
    autoplay:10000,
    mode: 'horizontal',/*电向电影*/
});


JqueryMobile的“$(document).on('pageinit',function() {”  和 “$(function(){” 电影电影???

JqueryMobile的“$(document). on('pageinit',function() {” 是电影电影手机手机。

$(function(){是学习手机??)    我们用这个教述“swiper”可以可以翻连???







回复手机(电影)

$(function(){.. .} Executing when the page is loaded (即window.load事件内容)而 failure

swiper没用过,推昺是是以了pageinit事件的时代电影的图片的什么的是这保的,以上交交事件的先后电影的。

pageinit是When the page is already initialized and completed, the enhancement is triggered. document).on('ready',function(){}); 使用写设计。
ready事件。

看看最了上海上电影直观



拜上,谢谢下载大神。

在电影电影上上下一个的事件的事件事件方法电视。

on() method 事件事件事件方法的电视的图像的下载的事定的jQueryobject的中在jQuery 1.7,.on() method provides all the required设计。帮助从旧的jQuery事件法件设计,see .bind(), .delegate(), 和 .live(). 要要新的的.on() 电影的事件,要要方法的事件,要要是一个事件,only run once,then deleteself,要要.one()

<!doctype html><html><head><meta charset="utf-8"><title></title><link rel="stylesheet" href="http://code.jquery.com/mobile/1.3.2/jquery.mobile-1.3.2.min.css"><script src="http://code.jquery.com/jquery-1.8.3.min.js"></script><script src="http://code.jquery.com/mobile/1.3.2/jquery.mobile-1.3.2.min.js"></script><script>$(document).on('ready',function(){	alert("ready");//这时图片已经显示了});$(document).on('pageinit',function(){	alert("pageinit");//不要点确定,很明显图片还没显示});</script></head><body><img src="http://static.csdn.net/public/common/toolbar/images/f_icon.png" /></body></html>
Copy after login

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template