Get the App
SLTechnology News&Howtos  ›  Development  › 

How to get jquery by python

Shulou Source: shulou.com Published: 2022-06-02 01:24:04 10月03日 Update

This article will explain in detail how to obtain jquery from python. The content of the article is of high quality, so the editor shares it for you as a reference. I hope you will have a certain understanding of the relevant knowledge after reading this article.

1. The production of slides 2.json data format and ajax

01-Carousel figure-get the related elements [mw_shl_code=applescript,true] var $slide=$ ('.broadcast'), / / div of the rotated region

$slideList=$ ('.broadcast _ list'), / / Carousel list

$lis=$ ('.broadcast _ list li'), / / four li in carousel

$prevBtn=$ ('.prev'), / / previous button

$nextBtn=$ ('.next'), / / next button

$pointsList=$ ('.points'); / / list of dots [/ mw_shl_code]

2-Carousel chart-add dots [mw_shl_code=applescript,true] / /

1. Dynamically add dots according to the number of pictures

For (var item0; I

< iPicCount; i++) {   $pointsList.append('   ');   }   // 1.1 默认第0个小点高亮   $pointsList.children(':first')。addClass('active');   [/mw_shl_code]   轮播图-监听小圆点事件 - 下一张[mw_shl_code=applescript,true] // 2.动画前的准备除了第一张 其它 都放到760的位置   $lis.not(':first')。css({ 'left': 760 });   var iNowIndex=0; // 即将要上显示的这一张   var iPreviousIndex=0; // 上一张,也是要让位置的这一张   // 2.1 点击小圆点进行图片移动动画   $pointsList.delegate('li', 'click', function () {   // 记录即将要显示的图片索引   iNowIndex=$(this)。index();   // 动画移动   fnMoveAnmation();   });   // 公共函数   function fnMoveAnmation() {   // 小圆点高亮处理   $pointsList.children()。eq(iNowIndex)。addClass('active')。siblings()。removeClass('active');   // 显示下一张   if (iNowIndex >

IPreviousIndex) {

/ / move the currently displayed picture from 0 to the left-760 to make way for the image to appear

$lis.eq (iPreviousIndex). Animate ({'left':-760})

/ / move the image to appear from the original 760 position to the 0 position

$lis.eq (iNowIndex). Animate ({'left': 0})

/ / record the index displayed this time as the index of the position to be allowed for the next animation.

IPreviousIndex=iNowIndex

}

} [/ mw_shl_code]

What does python mean Python is a cross-platform, interpretive, compiled, interactive and object-oriented scripting language, originally designed to write automated scripts, and is often used to develop independent and large-scale projects as versions are constantly updated and new features are added.

So much for sharing about how python gets jquery. I hope the above content can be of some help to you and learn more. If you think the article is good, you can share it for more people to see.

Tags: Position dot picture animation move index content button article more knowledge article script project highlight previous good continuous event interactive Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MariaDB Shulou Technology Apple Docker Linux