js面向对象之实现淘宝放大镜(2)

<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <script src="https://www.jb51.net/js/LoadMethod.js"></script> <script src="https://www.jb51.net/js/ZoomClasses.js"></script> </head> <body> <script> let zoom=new ZoomClasses(document.body); zoom.imgSource=["img/max.jpg","img/min.jpg"]; </script> </body> </html>

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:http://www.heiqu.com/4f377558dabadae121af1fc6cade4b27.html