乐于分享
好东西不私藏

JS 实现的多个图片水平切换效果(附源码)

JS 实现的多个图片水平切换效果(附源码)

源码获取

私信回复水平切换获取完整源码

演示效果

html 文件

<!DOCTYPE html><html lang="en"><head>    <meta charset="UTF-8">    <title>JS 实现的多个图片水平切换效果</title>    <link rel="stylesheet" href="./style.css"></head><body>    <div class="gallery">        <div class="loading-overlay" id="loadingOverlay">            <div class="spinner"></div>            <p>加载中...</p>        </div>        <ul class="cards"></ul>        <svg class="nav-btn prev-btn" width="56.898" height="91" viewBox="0 0 56.898 91" aria-label="上一张">            <path d="M45.5,0,91,56.9,48.452,24.068,0,56.9Z" transform="translate(0 91) rotate(-90)"                fill="rgba(255, 255, 255, 0.2)"></path>        </svg>        <svg class="nav-btn next-btn" width="56.898" height="91" viewBox="0 0 56.898 91" aria-label="下一张">            <path d="M45.5,0,91,56.9,48.452,24.068,0,56.9Z" transform="translate(56.898) rotate(90)"                fill="rgba(255, 255, 255, 0.2)"></path>        </svg>    </div>    <script src="https://cdn.jsdelivr.net/npm/gsap@3.15/dist/gsap.min.js"></script>    <script src="https://cdn.jsdelivr.net/npm/gsap@3.15/dist/ScrollTrigger.min.js"></script>    <script src="./script.js"></script></body></html>

css 文件

@import url("https://fonts.googleapis.com/css2?family=Roboto&family=Zen+Dots&display=swap");* {  box-sizing: border-box;}body {  background: #222;  min-height: 100vh;  padding: 0;  margin: 0;  color: #fff;  font-family: "Zen Dots", sans-serif;  text-shadow: #000 1px 1px 5px, #000 -1px -1px 5px;}.gallery {  position: absolute;  width: 100%;  height: 100vh;  overflow: hidden;}.cards {  position: absolute;  width: 800px;  height: 500px;  top: 50%;  left: 50%;  transform: translate(-50%, -50%);}.cards li {  list-style: none;  padding: 0;  margin: 0;  width: 800px;  height: 500px;  text-align: center;  line-height: 18rem;  font-size: 2rem;  border: 5px solid white;  border-radius: 15px;  position: absolute;  top: 0;  left: 0;  background-size: cover;  box-shadow: #000 1px 1px 5px, #000 -1px -1px 5px;}li:hover {  color: #fff;  transition: color 0.3s ease;  box-shadow: rgba(255, 255, 255, 0.6) 0px 4px 15px, rgba(0, 0, 0, 0.3) 0px 4px 10px;  z-index: 10;  /* Brings the hovered card to the front */}.actions {  position: absolute;  bottom: 25px;  left: 50%;  transform: translateX(-50%);}button {  display: inline-block;  outline: none;  border: none;  padding: 8px 14px;  background: #414141;  background-image: -webkit-linear-gradient(top, #575757#414141);  background-image: -moz-linear-gradient(top, #575757#414141);  background-image: -ms-linear-gradient(top, #575757#414141);  background-image: -o-linear-gradient(top, #575757#414141);  background-image: linear-gradient(to bottom, #575757#414141);  text-shadow: #000 1px 1px 5px, #000 -1px -1px 5px;  box-shadow: #000 1px 1px 5px, #000 -1px -1px 5px;  color: #aaaaaa;  text-decoration: none;  margin: 0 auto 10px;  border-radius: 4px;  padding: 12px 25px;  font-family: "Zen Dots", sans-serif;  text-transform: uppercase;  cursor: pointer;  font-size: 10px;  font-weight: 400;  line-height: 18px;}button:hover {  background: #57a818;  background-image: -webkit-linear-gradient(top, #57a818#4d9916);  background-image: -moz-linear-gradient(top, #57a818#4d9916);  background-image: -ms-linear-gradient(top, #57a818#4d9916);  background-image: -o-linear-gradient(top, #57a818#4d9916);  background-image: linear-gradient(to bottom, #57a818#4d9916);  text-shadow: 0px 1px 0px #32610e;  box-shadow: 0px 1px 0px fefefe;  color: #ffffff;  text-decoration: none;}.refresh-btn {  position: fixed;  top: 20px;  right: 20px;  padding: 10px 20px;  background: #007bff;  color: white;  border: solid 2px black;  border-radius: 5px;  cursor: pointer;  transition: background 0.3s ease;  filter: drop-shadow(1px 2px 1px rgba(0, 0, 50, 0.7)) drop-shadow(2px 4px 3px rgba(0, 0, 0, 0.5));}.refresh-btn:hover {  background: #0056b3;}.instruction {  position: fixed;  top: 80px;  right: 20px;  padding: 10px 20px;  font-size: 0.8rem;}.nav-btn {  position: absolute;  top: 50%;  transform: translateY(-50%);  cursor: pointer;  z-index: 100;  transition: fill 0.3s ease;  width: 40px;  height: 60px;}.nav-btn:hover path {  fill: rgba(255, 255, 255, 0.8);}.prev-btn {  left: 20px;}.next-btn {  right: 20px;}

js 文件

gsap.registerPlugin(ScrollTrigger);const cardsContainer = document.querySelector(".cards");const loadingOverlay = document.getElementById("loadingOverlay");function preloadImage(url) {    return new Promise((resolve, reject) => {        const img = new Image();        img.onload = () => resolve(url);        img.onerror = () => resolve(url);        img.src = url;    });}async function initGallery() {    for (let i = 0; i <= 10; i++) {        const li = document.createElement("li");        li.className = "card";        li.textContent = i;        li.dataset.imageIndex = i;        li.style.background = `url('https://picsum.photos/200/150?random=${i + 1}') center/cover no-repeat`;        cardsContainer.appendChild(li);    }    loadingOverlay.classList.add("hidden");    setupGallery();    loadImagesSequentially();}async function loadImagesSequentially() {    const cards = document.querySelectorAll(".card");    const loadInterval = 200;    for (let i = 0; i < cards.length; i++) {        await new Promise(resolve => setTimeout(resolve, loadInterval));        const card = cards[i];        const index = card.dataset.imageIndex;        const img = new Image();        img.onload = () => {            card.style.background = `url('https://picsum.photos/800/600?random=${parseInt(index) + 1}') center/cover no-repeat`;        };        img.onerror = () => {};        img.src = `https://picsum.photos/800/600?random=${parseInt(index) + 1}`;    }}function refreshCards() {	const cards = document.querySelectorAll(".card");	cards.forEach((card, index) => {		card.style.animation = "none";		card.style.background = `url('https://picsum.photos/800/600?random=${			index + 1		}&t=${Date.now()}') center/cover no-repeat`;		card.offsetHeight;		card.style.animation = null;	});}function setupGallery() {	let iteration = 0;	const spacing = 0.1,		snap = gsap.utils.snap(spacing),		cards = gsap.utils.toArray(".cards li"),		seamlessLoop = buildSeamlessLoop(cards, spacing),		scrub = gsap.to(seamlessLoop, {			totalTime: 0,			duration: 0.5,			ease: "power3",			paused: true		}),		trigger = ScrollTrigger.create({			start: 0,			onUpdate(self) {				if (self.progress === 1 && self.direction > 0 && !self.wrapping) {					wrapForward(self);				} else if (self.progress < 1e-5 && self.direction < 0 && !self.wrapping) {					wrapBackward(self);				} else {					scrub.vars.totalTime = snap(						(iteration + self.progress) * seamlessLoop.duration()					);					scrub.invalidate().restart();					self.wrapping = false;				}			},			end: "+=3000",			pin: ".gallery"		});	function wrapForward(trigger) {		iteration++;		trigger.wrapping = true;		trigger.scroll(trigger.start + 1);	}	function wrapBackward(trigger) {		iteration--;		if (iteration < 0) {			iteration = 9;			seamlessLoop.totalTime(				seamlessLoop.totalTime() + seamlessLoop.duration() * 10			);			scrub.pause();		}		trigger.wrapping = true;		trigger.scroll(trigger.end - 1);	}	function scrubTo(totalTime) {		let progress =			(totalTime - seamlessLoop.duration() * iteration) / seamlessLoop.duration();		if (progress > 1) {			wrapForward(trigger);		} else if (progress < 0) {			wrapBackward(trigger);		} else {			trigger.scroll(trigger.start + progress * (trigger.end - trigger.start));		}	}	document		.querySelector(".next-btn")		.addEventListener("click", () => scrubTo(scrub.vars.totalTime + spacing));	document		.querySelector(".prev-btn")		.addEventListener("click", () => scrubTo(scrub.vars.totalTime - spacing));	let autoplayInterval;	const gallery = document.querySelector(".gallery");	function startAutoplay() {		autoplayInterval = setInterval(() => {			scrubTo(scrub.vars.totalTime + spacing);		}, 3000);	}	function stopAutoplay() {		if (autoplayInterval) {			clearInterval(autoplayInterval);			autoplayInterval = null;		}	}	startAutoplay();	gallery.addEventListener("mouseenter", () => {		stopAutoplay();	});	gallery.addEventListener("mouseleave", () => {		startAutoplay();	});}function buildSeamlessLoop(items, spacing) {	let overlap = Math.ceil(1 / spacing),		startTime = items.length * spacing + 0.5,		loopTime = (items.length + overlap) * spacing + 1,		rawSequence = gsap.timeline({ paused: true }),		seamlessLoop = gsap.timeline({			paused: true,			repeat: -1,			onRepeat() {				this._time === this._dur && (this._tTime += this._dur - 0.01);			}		}),		l = items.length + overlap * 2,		time = 0,		i,		index,		item;	gsap.set(items, { xPercent: 300, opacity: 0, scale: 0 });	for (i = 0; i < l; i++) {		index = i % items.length;		item = items[index];		time = i * spacing;		rawSequence			.fromTo(				item,				{ scale: 0, opacity: 0 },				{					scale: 1,					opacity: 1,					zIndex: 100,					duration: 0.5,					yoyo: true,					repeat: 1,					ease: "power1.in",					immediateRender: false				},				time			)			.fromTo(				item,				{ xPercent: 300 },				{ xPercent: -300, duration: 1, ease: "none", immediateRender: false },				time			);		i <= items.length && seamlessLoop.add("label" + i, time);	}	rawSequence.time(startTime);	seamlessLoop		.to(rawSequence, {			time: loopTime,			duration: loopTime - startTime,			ease: "none"		})		.fromTo(			rawSequence,			{ time: overlap * spacing + 1 },			{				time: startTime,				duration: startTime - (overlap * spacing + 1),				immediateRender: false,				ease: "none"			}		);	return seamlessLoop;}initGallery();gsap.registerPlugin(ScrollTrigger);const cardsContainer = document.querySelector(".cards");const loadingOverlay = document.getElementById("loadingOverlay");function preloadImage(url) {    return new Promise((resolve, reject) => {        const img = new Image();        img.onload = () => resolve(url);        img.onerror = () => resolve(url);        img.src = url;    });}async function initGallery() {    for (let i = 0; i <= 10; i++) {        const li = document.createElement("li");        li.className = "card";        li.textContent = i;        li.dataset.imageIndex = i;        li.style.background = `url('https://picsum.photos/200/150?random=${i + 1}') center/cover no-repeat`;        cardsContainer.appendChild(li);    }    loadingOverlay.classList.add("hidden");    setupGallery();    loadImagesSequentially();}async function loadImagesSequentially() {    const cards = document.querySelectorAll(".card");    const loadInterval = 200;    for (let i = 0; i < cards.length; i++) {        await new Promise(resolve => setTimeout(resolve, loadInterval));        const card = cards[i];        const index = card.dataset.imageIndex;        const img = new Image();        img.onload = () => {            card.style.background = `url('https://picsum.photos/800/600?random=${parseInt(index) + 1}') center/cover no-repeat`;        };        img.onerror = () => {};        img.src = `https://picsum.photos/800/600?random=${parseInt(index) + 1}`;    }}function refreshCards() {	const cards = document.querySelectorAll(".card");	cards.forEach((card, index) => {		card.style.animation = "none";		card.style.background = `url('https://picsum.photos/800/600?random=${			index + 1		}&t=${Date.now()}') center/cover no-repeat`;		card.offsetHeight;		card.style.animation = null;	});}function setupGallery() {	let iteration = 0;	const spacing = 0.1,		snap = gsap.utils.snap(spacing),		cards = gsap.utils.toArray(".cards li"),		seamlessLoop = buildSeamlessLoop(cards, spacing),		scrub = gsap.to(seamlessLoop, {			totalTime: 0,			duration: 0.5,			ease: "power3",			paused: true		}),		trigger = ScrollTrigger.create({			start: 0,			onUpdate(self) {				if (self.progress === 1 && self.direction > 0 && !self.wrapping) {					wrapForward(self);				} else if (self.progress < 1e-5 && self.direction < 0 && !self.wrapping) {					wrapBackward(self);				} else {					scrub.vars.totalTime = snap(						(iteration + self.progress) * seamlessLoop.duration()					);					scrub.invalidate().restart();					self.wrapping = false;				}			},			end: "+=3000",			pin: ".gallery"		});	function wrapForward(trigger) {		iteration++;		trigger.wrapping = true;		trigger.scroll(trigger.start + 1);	}	function wrapBackward(trigger) {		iteration--;		if (iteration < 0) {			iteration = 9;			seamlessLoop.totalTime(				seamlessLoop.totalTime() + seamlessLoop.duration() * 10			);			scrub.pause();		}		trigger.wrapping = true;		trigger.scroll(trigger.end - 1);	}	function scrubTo(totalTime) {		let progress =			(totalTime - seamlessLoop.duration() * iteration) / seamlessLoop.duration();		if (progress > 1) {			wrapForward(trigger);		} else if (progress < 0) {			wrapBackward(trigger);		} else {			trigger.scroll(trigger.start + progress * (trigger.end - trigger.start));		}	}	document		.querySelector(".next-btn")		.addEventListener("click", () => scrubTo(scrub.vars.totalTime + spacing));	document		.querySelector(".prev-btn")		.addEventListener("click", () => scrubTo(scrub.vars.totalTime - spacing));	let autoplayInterval;	const gallery = document.querySelector(".gallery");	function startAutoplay() {		autoplayInterval = setInterval(() => {			scrubTo(scrub.vars.totalTime + spacing);		}, 3000);	}	function stopAutoplay() {		if (autoplayInterval) {			clearInterval(autoplayInterval);			autoplayInterval = null;		}	}	startAutoplay();	gallery.addEventListener("mouseenter", () => {		stopAutoplay();	});	gallery.addEventListener("mouseleave", () => {		startAutoplay();	});}function buildSeamlessLoop(items, spacing) {	let overlap = Math.ceil(1 / spacing),		startTime = items.length * spacing + 0.5,		loopTime = (items.length + overlap) * spacing + 1,		rawSequence = gsap.timeline({ paused: true }),		seamlessLoop = gsap.timeline({			paused: true,			repeat: -1,			onRepeat() {				this._time === this._dur && (this._tTime += this._dur - 0.01);			}		}),		l = items.length + overlap * 2,		time = 0,		i,		index,		item;	gsap.set(items, { xPercent: 300, opacity: 0, scale: 0 });	for (i = 0; i < l; i++) {		index = i % items.length;		item = items[index];		time = i * spacing;		rawSequence			.fromTo(				item,				{ scale: 0, opacity: 0 },				{					scale: 1,					opacity: 1,					zIndex: 100,					duration: 0.5,					yoyo: true,					repeat: 1,					ease: "power1.in",					immediateRender: false				},				time			)			.fromTo(				item,				{ xPercent: 300 },				{ xPercent: -300, duration: 1, ease: "none", immediateRender: false },				time			);		i <= items.length && seamlessLoop.add("label" + i, time);	}	rawSequence.time(startTime);	seamlessLoop		.to(rawSequence, {			time: loopTime,			duration: loopTime - startTime,			ease: "none"		})		.fromTo(			rawSequence,			{ time: overlap * spacing + 1 },			{				time: startTime,				duration: startTime - (overlap * spacing + 1),				immediateRender: false,				ease: "none"			}		);	return seamlessLoop;}initGallery();
基本 文件 流程 错误 SQL 调试
  1. 请求信息 : 2026-07-15 15:54:07 HTTP/1.1 GET : https://www.yeyulingfeng.com/a/861213.html
  2. 运行时间 : 0.252366s [ 吞吐率:3.96req/s ] 内存消耗:4,769.19kb 文件加载:145
  3. 缓存信息 : 0 reads,0 writes
  4. 会话信息 : SESSION_ID=5cd528d701704dadfbf579d2904b0fe3
  1. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/public/index.php ( 0.79 KB )
  2. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/autoload.php ( 0.17 KB )
  3. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/composer/autoload_real.php ( 2.49 KB )
  4. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/composer/platform_check.php ( 0.90 KB )
  5. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/composer/ClassLoader.php ( 14.03 KB )
  6. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/composer/autoload_static.php ( 6.05 KB )
  7. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-helper/src/helper.php ( 8.34 KB )
  8. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-validate/src/helper.php ( 2.19 KB )
  9. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/ralouphie/getallheaders/src/getallheaders.php ( 1.60 KB )
  10. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/helper.php ( 1.47 KB )
  11. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/stubs/load_stubs.php ( 0.16 KB )
  12. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Exception.php ( 1.69 KB )
  13. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-container/src/Facade.php ( 2.71 KB )
  14. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/symfony/deprecation-contracts/function.php ( 0.99 KB )
  15. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/symfony/polyfill-mbstring/bootstrap.php ( 8.26 KB )
  16. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/symfony/polyfill-mbstring/bootstrap80.php ( 9.78 KB )
  17. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/symfony/var-dumper/Resources/functions/dump.php ( 1.49 KB )
  18. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-dumper/src/helper.php ( 0.18 KB )
  19. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/symfony/var-dumper/VarDumper.php ( 4.30 KB )
  20. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/guzzlehttp/guzzle/src/functions_include.php ( 0.16 KB )
  21. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/guzzlehttp/guzzle/src/functions.php ( 5.54 KB )
  22. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/App.php ( 15.30 KB )
  23. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-container/src/Container.php ( 15.76 KB )
  24. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/psr/container/src/ContainerInterface.php ( 1.02 KB )
  25. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/app/provider.php ( 0.19 KB )
  26. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Http.php ( 6.04 KB )
  27. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-helper/src/helper/Str.php ( 7.29 KB )
  28. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Env.php ( 4.68 KB )
  29. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/app/common.php ( 0.03 KB )
  30. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/helper.php ( 18.78 KB )
  31. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Config.php ( 5.54 KB )
  32. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/config/alipay.php ( 3.59 KB )
  33. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/facade/Env.php ( 1.67 KB )
  34. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/config/app.php ( 0.95 KB )
  35. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/config/cache.php ( 0.78 KB )
  36. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/config/console.php ( 0.23 KB )
  37. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/config/cookie.php ( 0.56 KB )
  38. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/config/database.php ( 2.48 KB )
  39. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/config/filesystem.php ( 0.61 KB )
  40. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/config/lang.php ( 0.91 KB )
  41. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/config/log.php ( 1.35 KB )
  42. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/config/middleware.php ( 0.19 KB )
  43. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/config/route.php ( 1.89 KB )
  44. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/config/session.php ( 0.57 KB )
  45. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/config/trace.php ( 0.34 KB )
  46. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/config/view.php ( 0.82 KB )
  47. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/app/event.php ( 0.25 KB )
  48. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Event.php ( 7.67 KB )
  49. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/app/service.php ( 0.13 KB )
  50. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/app/AppService.php ( 0.26 KB )
  51. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Service.php ( 1.64 KB )
  52. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Lang.php ( 7.35 KB )
  53. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/lang/zh-cn.php ( 13.70 KB )
  54. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/initializer/Error.php ( 3.31 KB )
  55. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/initializer/RegisterService.php ( 1.33 KB )
  56. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/services.php ( 0.14 KB )
  57. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/service/PaginatorService.php ( 1.52 KB )
  58. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/service/ValidateService.php ( 0.99 KB )
  59. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/service/ModelService.php ( 2.04 KB )
  60. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-trace/src/Service.php ( 0.77 KB )
  61. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Middleware.php ( 6.72 KB )
  62. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/initializer/BootService.php ( 0.77 KB )
  63. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/Paginator.php ( 11.86 KB )
  64. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-validate/src/Validate.php ( 63.20 KB )
  65. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/Model.php ( 23.55 KB )
  66. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/model/concern/Attribute.php ( 21.05 KB )
  67. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/model/concern/AutoWriteData.php ( 4.21 KB )
  68. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/model/concern/Conversion.php ( 6.44 KB )
  69. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/model/concern/DbConnect.php ( 5.16 KB )
  70. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/model/concern/ModelEvent.php ( 2.33 KB )
  71. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/model/concern/RelationShip.php ( 28.29 KB )
  72. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-helper/src/contract/Arrayable.php ( 0.09 KB )
  73. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-helper/src/contract/Jsonable.php ( 0.13 KB )
  74. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/model/contract/Modelable.php ( 0.09 KB )
  75. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Db.php ( 2.88 KB )
  76. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/DbManager.php ( 8.52 KB )
  77. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Log.php ( 6.28 KB )
  78. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Manager.php ( 3.92 KB )
  79. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/psr/log/src/LoggerTrait.php ( 2.69 KB )
  80. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/psr/log/src/LoggerInterface.php ( 2.71 KB )
  81. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Cache.php ( 4.92 KB )
  82. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/psr/simple-cache/src/CacheInterface.php ( 4.71 KB )
  83. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-helper/src/helper/Arr.php ( 16.63 KB )
  84. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/cache/driver/File.php ( 7.84 KB )
  85. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/cache/Driver.php ( 9.03 KB )
  86. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/contract/CacheHandlerInterface.php ( 1.99 KB )
  87. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/app/Request.php ( 0.09 KB )
  88. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Request.php ( 55.78 KB )
  89. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/app/middleware.php ( 0.25 KB )
  90. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Pipeline.php ( 2.61 KB )
  91. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-trace/src/TraceDebug.php ( 3.40 KB )
  92. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/middleware/SessionInit.php ( 1.94 KB )
  93. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Session.php ( 1.80 KB )
  94. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/session/driver/File.php ( 6.27 KB )
  95. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/contract/SessionHandlerInterface.php ( 0.87 KB )
  96. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/session/Store.php ( 7.12 KB )
  97. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Route.php ( 23.73 KB )
  98. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/route/RuleName.php ( 5.75 KB )
  99. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/route/Domain.php ( 2.53 KB )
  100. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/route/RuleGroup.php ( 22.43 KB )
  101. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/route/Rule.php ( 26.95 KB )
  102. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/route/RuleItem.php ( 9.78 KB )
  103. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/route/app.php ( 3.94 KB )
  104. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/facade/Route.php ( 4.70 KB )
  105. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/route/dispatch/Controller.php ( 4.74 KB )
  106. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/route/Dispatch.php ( 10.44 KB )
  107. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/app/controller/Index.php ( 9.87 KB )
  108. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/app/BaseController.php ( 2.05 KB )
  109. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/facade/Db.php ( 0.93 KB )
  110. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/connector/Mysql.php ( 5.44 KB )
  111. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/PDOConnection.php ( 52.47 KB )
  112. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/Connection.php ( 8.39 KB )
  113. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/ConnectionInterface.php ( 4.57 KB )
  114. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/builder/Mysql.php ( 16.58 KB )
  115. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/Builder.php ( 24.06 KB )
  116. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/BaseBuilder.php ( 27.50 KB )
  117. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/Query.php ( 15.71 KB )
  118. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/BaseQuery.php ( 45.13 KB )
  119. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/concern/TimeFieldQuery.php ( 7.43 KB )
  120. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/concern/AggregateQuery.php ( 3.26 KB )
  121. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/concern/ModelRelationQuery.php ( 20.07 KB )
  122. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/concern/ParamsBind.php ( 3.66 KB )
  123. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/concern/ResultOperation.php ( 7.01 KB )
  124. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/concern/WhereQuery.php ( 19.37 KB )
  125. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/concern/JoinAndViewQuery.php ( 7.11 KB )
  126. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/concern/TableFieldInfo.php ( 2.63 KB )
  127. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/concern/Transaction.php ( 2.77 KB )
  128. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/log/driver/File.php ( 5.96 KB )
  129. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/contract/LogHandlerInterface.php ( 0.86 KB )
  130. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/log/Channel.php ( 3.89 KB )
  131. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/event/LogRecord.php ( 1.02 KB )
  132. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-helper/src/Collection.php ( 16.47 KB )
  133. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/facade/View.php ( 1.70 KB )
  134. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/View.php ( 4.39 KB )
  135. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/app/controller/Es.php ( 3.30 KB )
  136. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Response.php ( 8.81 KB )
  137. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/response/View.php ( 3.29 KB )
  138. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Cookie.php ( 6.06 KB )
  139. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-view/src/Think.php ( 8.38 KB )
  140. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/contract/TemplateHandlerInterface.php ( 1.60 KB )
  141. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-template/src/Template.php ( 46.61 KB )
  142. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-template/src/template/driver/File.php ( 2.41 KB )
  143. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-template/src/template/contract/DriverInterface.php ( 0.86 KB )
  144. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/runtime/temp/c935550e3e8a3a4c27dd94e439343fdf.php ( 31.50 KB )
  145. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-trace/src/Html.php ( 4.42 KB )
  1. CONNECT:[ UseTime:0.000992s ] mysql:host=127.0.0.1;port=3306;dbname=wenku;charset=utf8mb4
  2. SHOW FULL COLUMNS FROM `fenlei` [ RunTime:0.001631s ]
  3. SELECT * FROM `fenlei` WHERE `fid` = 0 [ RunTime:0.000696s ]
  4. SELECT * FROM `fenlei` WHERE `fid` = 63 [ RunTime:0.000684s ]
  5. SHOW FULL COLUMNS FROM `set` [ RunTime:0.001408s ]
  6. SELECT * FROM `set` [ RunTime:0.000531s ]
  7. SHOW FULL COLUMNS FROM `article` [ RunTime:0.001501s ]
  8. SELECT * FROM `article` WHERE `id` = 861213 LIMIT 1 [ RunTime:0.003347s ]
  9. UPDATE `article` SET `lasttime` = 1784102047 WHERE `id` = 861213 [ RunTime:0.059648s ]
  10. SELECT * FROM `fenlei` WHERE `id` = 64 LIMIT 1 [ RunTime:0.000645s ]
  11. SELECT * FROM `article` WHERE `id` < 861213 ORDER BY `id` DESC LIMIT 1 [ RunTime:0.001292s ]
  12. SELECT * FROM `article` WHERE `id` > 861213 ORDER BY `id` ASC LIMIT 1 [ RunTime:0.007932s ]
  13. SELECT * FROM `article` WHERE `id` < 861213 ORDER BY `id` DESC LIMIT 10 [ RunTime:0.002481s ]
  14. SELECT * FROM `article` WHERE `id` < 861213 ORDER BY `id` DESC LIMIT 10,10 [ RunTime:0.007753s ]
  15. SELECT * FROM `article` WHERE `id` < 861213 ORDER BY `id` DESC LIMIT 20,10 [ RunTime:0.010773s ]
0.256756s