自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(77)
  • 收藏
  • 关注

原创 jar 读取resouces目录下模板导出

写在前面:直接使用路径,本地可以正常导出,部署到服务器可能不能读取文件,采用字符流的方式可以实现导出功能。1 使用模板填充数据。

2023-04-05 11:58:26 263

原创 vue+element-ui+springboot 在线表格编辑

动态表格在线编辑

2023-02-09 20:06:56 894

原创 方法触发方法

/** *功能描述 获取培养方案校验结果 * @author zqq * @date 2021/3/24 15:27 * @param: * @return */ @Override public JSONObject getVerifyResult(String schemeId) {// 返回结果包含是否通过和各校验结果 JSONObject jsonObject =new JSONObject().

2021-06-12 15:16:47 211

原创 layui 上传 xml

前端:<div class="layui-fluid"> <div class="layui-row layui-col-space15"> <div class="layui-col-md12"> <div class="layui-card"> <div class="layui-card-header">编辑</div> <div class="layui-card-body">

2021-03-17 13:41:52 233

原创 layui table 监听radio

<div class="layui-fluid"> <div class="layui-row layui-col-space15"> <div class="layui-col-md12"> <div class="layui-card"> <div class="layui-card-header">批量维护</div> <div class="layui-card-body" pad15>.

2021-03-12 14:18:23 1094

原创 HTML Table 打印

实现表格跨页自动分开 @media print { .layui-table { page-break-after:auto } tr { page-break-inside:avoid; page-break-after:auto } td { page-break-inside:avoid; page-break-after:auto } thead { display:table-header-group } tfoot { display:tabl

2021-03-04 09:28:30 827 1

原创 layui select 级联

<div class="layui-form" lay-filter="xy-from-search"> <div class="layui-form-item"> <label class="layui-form-label" style="width: 40px;" id="rqLabel"></label> <div class="layui-input-inline"> <inpu...

2021-02-23 18:41:09 713

原创 Vue Echarts 电子支付图表

项目结构,elepay components 和 model上面两个完成后需要在status.ts 和 core.ts home.vue 和 home.vue 配置相应路径,这里不演示echarts_elepay.tsimport utils from "@/components/util/utils";const myModule:{ [key: string]: any} = { type:'simple', name:'fixed_report_echa...

2020-08-17 11:54:00 601

原创 Vue Echarts Bmap

目录结构运行结果代码实现创建vue项目https://www.jianshu.com/p/ff1c485f0454安装echartshttps://www.jianshu.com/p/cf0a54374419详细代码main.tsimport Vue from 'vue'import App from './App.vue'import router from './router'import echarts from "echarts"Vue.prototy...

2020-08-12 17:24:58 522

原创 顶部栏目样式设计

代码:shopping.html<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>购物车</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="format-detec

2020-08-07 17:09:02 281

原创 php mysql

代码:<?php$hostName = "localhost";$usrName = "test";$passWord = "123456";$port = "3306";$dbname = "xzjcy";$content = mysqli_connect($hostName,$usrName,$passWord,$dbname,$port);mysqli_set_charset($content,'utf-8');if(!$content){ die("connect

2020-07-11 09:11:50 155

原创 pymongo简单使用

代码:# -*- coding: utf-8 -*-# @Time : 2020/4/25 15:09# @Author : Oneqq# @File : 1.mongo.py# @Software: PyCharmimport pymongoclient = pymongo.MongoClient()person = client.personstudent = per...

2020-04-25 15:39:53 282

原创 pycharm连接mysql

代码:# -*- coding: utf-8 -*-# @Time : 2020/4/24 19:51# @Author : Oneqq# @File : 28.双色球.py# @Software: PyCharmimport requestsfrom fake_useragent import UserAgentfrom lxml import etreeimport p...

2020-04-24 23:27:42 181

原创 scrapy 简单使用 pipelines,items

Teminal 输入 scrapy startproject spider1,然后输入 scrapy genspider qidiansettings.py修改4处代码:USER_AGENT = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.404...

2020-04-23 20:56:11 242

原创 农业新闻内容获取 python

代码:#!-*- coding: utf-8 -*-# @Time : 2020/4/20 22:19# @Author : Oneqq# @File : 27农业新闻内容获取.py# @Software: PyCharmimport requestsfrom fake_useragent import UserAgentfrom lxml import etreeurl...

2020-04-20 23:39:11 425

原创 云打码案例 python

1.云打码http://www.yundama.com/ 下载 YDMHTTPDemo3.x(python3)2.将文件解压至项目目录下 命名如yzm_util.py3.注册云打码平台,普通用户和开发者用户各一个,在开发者用户下增加我的新软件,得到软件代码和通讯密匙,在yzm_util.py中修改相应代码4. 将yzm_util.py post_url()方法后修改内容如...

2020-04-20 21:52:10 587 1

原创 多线程使用 python

代码:# -*- coding: utf-8 -*-# @Time : 2020/4/19 21:54# @Author : Oneqq# @File : 24.threads的使用.py# @Software: PyCharmfrom threading import Threadfrom queue import Queuefrom fake_useragent impo...

2020-04-19 22:39:05 160

原创 python.jsonpath

代码:# -*- coding: utf-8 -*-# @Time : 2020/4/19 20:57# @Author : Oneqq# @File : 23.jsonpath的使用.py# @Software: PyCharmfrom jsonpath import jsonpathimport jsonfrom fake_useragent import UserAge...

2020-04-19 21:18:42 179

原创 python.json

代码:# -*- coding: utf-8 -*-# @Time : 2020/4/19 20:41# @Author : Oneqq# @File : 22.jsonpath的使用.py# @Software: PyCharmimport jsonstr = '{"name":"盗梦笔记"}'print(type(str))obj = json.loads(str)...

2020-04-19 20:53:13 125

原创 pyquery

代码:# -*- coding: utf-8 -*-# @Time : 2020/4/19 19:54# @Author : Oneqq# @File : 21.pyquery的使用.py# @Software: PyCharmfrom pyquery import PyQuery as pqimport requestsfrom fake_useragent import ...

2020-04-19 20:37:27 173

原创 python.xpath

代码:# -*- coding: utf-8 -*-# @Time : 2020/4/19 19:13# @Author : Oneqq# @File : 20.xpath.py# @Software: PyCharmfrom lxml import etreeimport requestsfrom fake_useragent import UserAgenturl =...

2020-04-19 19:42:58 107

原创 糗事百科 正则 python

代码:# -*- coding: utf-8 -*-# @Time : 2020/4/19 16:33# @Author : Oneqq# @File : 18.糗事百科案例.py# @Software: PyCharmimport requestsfrom fake_useragent import UserAgentimport reurl = "https://ww...

2020-04-19 17:22:53 129

原创 python-URLError

代码:# -*- coding: utf-8 -*-# @Time : 2020/4/16 13:52# @Author : Oneqq# @File : 14.URLError.py# @Software: PyCharmfrom urllib.request import Request, urlopenfrom fake_useragent import UserAgen...

2020-04-16 14:17:11 159

原创 python-cookie

# -*- coding: utf-8 -*-# @Time : 2020/4/15 18:07# @Author : Oneqq# @File : 12.cookie1.py# @Software: PyCharmfrom urllib.request import Request, urlopenfrom fake_useragent import UserAgenturl...

2020-04-16 13:46:35 103

原创 python-proxy

代码:# -*- coding: utf-8 -*-# @Time : 2020/4/15 17:44# @Author : Oneqq# @File : 11.proxy.py# @Software: PyCharmfrom urllib.request import Request, urlopenfrom fake_useragent import UserAgentf...

2020-04-15 17:58:22 1605

原创 python-https 忽略证书验证

代码:# -*- coding: utf-8 -*-# @Time : 2020/4/15 16:54# @Author : Oneqq# @File : 03-https.py# @Software: PyCharmfrom urllib.request import Request, urlopenfrom fake_useragent import UserAgenti...

2020-04-15 17:05:08 1379

原创 python-ajax

代码:# -*- coding: utf-8 -*-# @Time : 2020/4/15 16:11# @Author : Oneqq# @File : 04-ajax.py# @Software: PyCharmfrom urllib.request import Request, urlopenfrom fake_useragent import UserAgentu...

2020-04-15 16:40:32 138

原创 python -post请求

代码:# -*- coding: utf-8 -*-# @Time : 2020/4/14 15:47# @Author : Oneqq# @File : 04-post.py# @Software: PyCharmfrom urllib.request import Request, urlopenfrom urllib.parse import urlencodefrom...

2020-04-15 15:47:56 272

原创 爬取分页内容 python

代码:# -*- coding: utf-8 -*-# @Time : 2020/4/14 20:40# @Author : Oneqq# @File : 03-gethtml.py# @Software: PyCharmfrom urllib.request import Request, urlopenfrom urllib.parse import urlencodef...

2020-04-14 22:07:20 252

原创 今日影评动态爬虫

代码:import requestsimport sqlite3import jsonimport randomdef find(): url = 'http://www.1905.com/api/content/index.php' headers = { 'User-Agent':'Mozilla/5.0 (Windows NT 10.0; Wi...

2020-04-11 23:04:26 105

原创 python 爬取大学排名

代码:import requestsfrom bs4 import BeautifulSoupimport bs4def getHTMLText(url): try: r = requests.get(url,timeout=30) r.raise_for_status() r.encoding = r.apparent_enc...

2020-03-31 22:04:08 208

原创 phpCAS 单点登录

根目录下新建文件 phpcas 下载phpCAS 我的文件链接https://github.com/15657318057/phpCAS-Example/tree/master/phpcas 修改config.php 新建示例文件 如verify.phpconfig.php<?php/** * The purpose of this central config...

2019-08-15 19:41:35 2211

原创 必备学习网站集锦

文档学习类1 https://developer.mozilla.org/zh-CN/2 http://www.runoob.com/3 https://www.w3cschool.cn/页面设计类1https://themehunt.com/2 菜单样式https://www.cnblogs.com/i7758/p/4870731.htmlhttp:/...

2019-07-16 15:25:22 205

原创 springmvc-mybatis 登录

完整代码 :https://github.com/15657318057/springmvc-mybatis-loginAdminController.javapackage com.edu.controller;import java.io.IOException;import javax.annotation.Resource;import javax.serv...

2019-04-28 19:39:31 246

原创 maven-spring

pom.xml 依赖的 jar 包很多 完整代码在:https://github.com/15657318057/mavendb.propertiesdriver=com.mysql.jdbc.Driverjdbc.url=jdbc\:mysql\://localhost\:3306/test?useUnicode\=true&characterEncoding\=...

2019-04-09 11:18:55 142

转载 input[type=file] 样式美化

<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8" /> <title>HTML Input file美化</title> <style type="text/css"> a{text-decorati...

2019-04-06 13:39:09 524

原创 tp5-登录验证(单一入口)

控制器 Common.php<?phpnamespace app\admin\controller;use think\Controller;class Common extends Controller{ public function _initialize() { if (!session('id') || !session('name...

2019-04-06 12:28:14 1686

原创 tp5-分页与批量删除

<!DOCTYPE html><html> <head> <meta charset="utf-8"> <title>教室管理</title> <!-- Bootstrap core CSS --> <link href="http://localhost/attenc...

2019-04-06 12:21:04 511

原创 tp5-批量导入数据

添加页面<head><style> a[class="button-selectimg"],input[type='submit']{text-decoration:none;color:#FAFAFB;padding:8px 16px;border:1px solid #fff;background:#4c95f7; font-size: 16px; } ...

2019-04-06 11:30:54 892

原创 highcharts-ajax-tp5 controller

controller查询数据并使用json_encode()返回值 public function getdata() { $data = Db::query("xxxxx"); return json_encode($data); }ajax 调取并添加到 图表中<!DOCTYPE html><html>...

2019-04-06 11:14:37 284

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除