广告条

轮播图

人走茶凉 提交于 2019-11-28 08:55:55
<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>轮播图</title> <script> var number=1; var img= null; function fun(){ number++; if(number>3){ number=1; } img= document.getElementById("img"); img.src="img/banner_"+number+".jpg"; } setInterval(fun,3000); </script></head><body> <img src="img/banner_1.jpg" id="img" width="100%"></body></html> 来源: https://www.cnblogs.com/newcityboy/p/11403285.html

vue-Cli3工具中,配置路径别名

主宰稳场 提交于 2019-11-28 00:12:51
最近用Vue Cli3脚手架搭建了Vue项目,发现没有build目录了,里面的webpack相关的也没了,看了官方文档后,查了资料后,发现都在vue.config.js里来配置了 配置路径别名,方便引用,不用写那么长 配置前: import Banner from '../components/m-banner.vue';    配置后(不用再关心文件层级关系): import Banner from 'components/m-banner.vue'; vue.config.js的文件: const path = require('path');//引入path模块 function resolve(dir){ return path.join(__dirname,dir)//path.join(__dirname)设置绝对路径 } module.exports={ chainWebpack:(config)=>{ config.resolve.alias .set('@',resolve('./src')) .set('components',resolve('./src/components')) //set第一个参数:设置的别名,第二个参数:设置的路径     } } ' 来源: https://www.cnblogs.com/zhouyingying/p/11382157

[壹品仓App爬虫]charles、mitmproxy和appium联合爬取壹品仓App商品数据

僤鯓⒐⒋嵵緔 提交于 2019-11-28 00:01:47
charles、mitmproxy和appium联合爬取壹品仓App商品数据 一、项目介绍: 本次主要是想爬取壹品仓APP里的发布的品牌数据信息(图片、品牌介绍、活动截止时间等)和相应品牌的产品的具体信息(包括图片、商品介绍、商品库存、商品尺码、商品原价、商品现价等),项目github地址为: 壹品仓App爬虫 二、所使用的工具: 本次爬虫所使用的工具有: pycharm 、 python 、 mitmproxy 、 appium 、 夜神模拟器 、 mongodb数据库 , charlse 其中 mitmproxy 、 mongodb 、 夜神模拟器 的安装请参考以前的博客内容: 【APP爬虫】mitmproxy抓包工具和夜神模拟器爬取得到APP , appium 、 charles 请参考自行在网上搜索安装或者参考崔大大的《 python3网络爬虫开发实战书》 ,需要电子版本的可在评论区留邮箱,项目开始前请确保所有环境均配置成功,具体配置遇到问题请自行搜索,博主在此暂时不做工具安装的介绍,如果以后有机会将工具安装单独总结一篇。 三、开始项目的具体实现 本项目的代码目录如下: 3.1 chales抓包 首先,我们在pycharm里面的Terminal里面输入nox_adb.exe connect 127.0.0.1:62001,开启夜神模拟器,输入adb

修改SpringBoot启动时的默认Banner图案

我是研究僧i 提交于 2019-11-27 23:03:46
1、在src/main/resources下新建banner.txt,在文件中加入要显示的图案即可; 2、生成图案的网站: http://patorjk.com/software/taag/ https://www.bootschool.net/ascii 3、关闭图案: SpringApplication application = new SpringApplication(Application.class); /* * Banner.Mode.OFF:关闭; * Banner.Mode.CONSOLE:控制台输出,默认方式; * Banner.Mode.LOG:日志输出方式; / application.setBannerMode(Banner.Mode.OFF*); application.run(args); 来源: https://www.cnblogs.com/andrew-303/p/11938130.html

微信小程序横向图片左右滑动

萝らか妹 提交于 2019-11-27 16:09:56
wxml代码 < scroll-view scroll-x = " true " > < view class = " banner " scroll-x = " true " > < view class = " banner_Item " > 第一块 </ view > < view class = " banner_Item " > 第二块 </ view > < view class = " banner_Item " > 第三块 </ view > < view class = " banner_Item " > 第四块 </ view > < view class = " banner_Item " > 第五块 </ view > </ view > </ scroll-view > wxss代码 .banner { height : 160rpx ; width : 100% ; display : flex ; display : -webkit-box ; flex-direction : column ; } .banner_Item { width : 160rpx ; height : 160rpx ; background-color : red ; margin-right : 10rpx ; } 效果图 来源: https://blog.csdn

CardBanner

帅比萌擦擦* 提交于 2019-11-27 14:58:19
//添加依赖 implementation ‘com.xuezj.cardbanner:cardbanner:2.0.1’ 布局 <com.xuezj.cardbanner.CardBanner android:id="@+id/fragmentone_banner" android:layout_width=“match_parent” android:layout_height="@dimen/dp_150"> </com.xuezj.cardbanner.CardBanner> Activity package com.bawei.zhaojianfu2019813.view.fragment; import android.content.Context; import android.os.Bundle; import android.support.annotation.NonNull; import android.support.annotation.Nullable; import android.support.v4.app.Fragment; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android

Spring-Boot Banner

半世苍凉 提交于 2019-11-27 14:31:45
下载Spring-Boot源码,目录结构spring-boot-2.1.0.M2\spring-boot-2.1.0.M2\spring-boot-project\spring-boot\src\main\java\org\springframework\boot Banner为接口具体实现类二个,https://docs.spring.io/spring-boot/docs/2.0.5.RELEASE/api/ 一个存放图片资源,一个存放资源。 package com.jachs.jurisdiction.Jurisdiction; import java.io.BufferedInputStream; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileReader; import org.springframework.boot.ImageBanner; import org.springframework.boot.ResourceBanner; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure

Spring Boot Banner placeholders

只谈情不闲聊 提交于 2019-11-27 14:31:31
Variable Description ${application.version} The version number of your application, as declared in MANIFEST.MF . For example, Implementation-Version: 1.0 is printed as 1.0 . ${application.formatted-version} The version number of your application, as declared in MANIFEST.MF and formatted for display (surrounded with brackets and prefixed with v ). For example (v1.0) . ${spring-boot.version} The Spring Boot version that you are using. For example 2.2.1.RELEASE . ${spring-boot.formatted-version} The Spring Boot version that you are using, formatted for display (surrounded with brackets and

Spring Boot 中如何定制 Banner

故事扮演 提交于 2019-11-27 14:31:09
本人免费整理了Java高级资料,涵盖了Java、Redis、MongoDB、MySQL、Zookeeper、Spring Cloud、Dubbo高并发分布式等教程,一共30G,需要自己领取。 传送门: https://mp.weixin.qq.com/s/JzddfH-7yNudmkjT0IRL8Q 简介 变量 配置 编程 Spring Boot 启动时默认会显示以下 logo: . ____ _ __ _ _ /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ \\/ ___)| |_)| | | | | || (_| | ) ) ) ) ' |____| .__|_| |_|_| |_\__, | / / / / =========|_|==============|___/=/_/_/_/ :: Spring Boot :: (v2.1.1.RELEASE) 实际上,Spring Boot 支持自定义 logo 的功能。 让我们来看看如何实现的。 简介 只要你在 resources 目录下放置名为 banner.txt 、 banner.gif 、 banner.jpg 或 banner.png 的文件,Spring Boot 会自动加载,将其作为启动时打印的