需求背景 在开发过程中,经常遇到用户提出 如果某个内容没有填写,则需要弹出提示,并且将页面滚动到指定位置的需求。那这种情况应该怎么实现呢?具体代码如下: 一、给链接a加个#的方式来实现跳转。 div1 div2 div3 <div id="container"> <a href="#div1">di ...
分类:
Web程序 时间:
2020-11-21 12:27:15
阅读次数:
21
fromdocximportDocumentfromdocx.enum.styleimportWD_STYLE_TYPEfromdocx.enum.textimportWD_ALIGN_PARAGRAPHimportosclassWord:definit(self):passself.doc=Document()defwrite_word(self):‘‘‘主函数‘‘‘titles=input(‘
分类:
其他好文 时间:
2020-11-21 12:00:03
阅读次数:
7
kube-system:是 namespace 名称 1、查看命名空间 kubectl get all -n kube-system 2、删除deployment(先删除deployment,删除后replicaset.apps 和 pod 自动就被删除了) kubectl delete deplo ...
分类:
其他好文 时间:
2020-11-21 11:45:05
阅读次数:
4
import jieba txt = open("西游记.txt", "r", encoding='utf-8').read() words = jieba.lcut(txt) # 使用精确模式对文本进行分词 counts = {} # 通过键值对的形式存储词语及其出现的次数 for word in ...
分类:
其他好文 时间:
2020-11-20 11:30:40
阅读次数:
32
先给官方文档地址: https://docs.microsoft.com/zh-cn/aspnet/core/blazor/host-and-deploy/webassembly?view=aspnetcore-3.1#rewrite-urls-for-correct-routing 然后说下我的踩 ...
分类:
Web程序 时间:
2020-11-19 12:58:39
阅读次数:
26
视频编码中,经常提到I帧。I帧只使用帧内压缩,不能除去帧间冗余度。P帧做帧间编码,根据当前帧与前面最近的I帧或P帧的差别来编码。 另外一个比较少提到的概念是IDR帧。IDR属于I帧,但是I帧不一定是IDR帧。解码器收到IDR帧时,将reference buffer清空;而收到I帧不会清空refere ...
分类:
其他好文 时间:
2020-11-18 13:20:55
阅读次数:
18
1. 前言 日常自动化办公中,使用 Python 真的能做到事半功倍! 在上一个系列中,我们对 Python 操作 Excel 进行了一次全面总结 最全总结 | 聊聊 Python 办公自动化之 Excel(上) 最全总结 | 聊聊 Python 办公自动化之 Excel(中) 最全总结 | 聊聊 ...
分类:
编程语言 时间:
2020-11-18 12:57:21
阅读次数:
11
private void ListenApplicationPool() { var manager = new Microsoft.Web.Administration.ServerManager(); System.Threading.ThreadPool.QueueUserWorkItem(( ...
分类:
系统相关 时间:
2020-11-18 12:35:05
阅读次数:
14
在使用Tomcat部署服务器之前我们需要写一个页面登录的HTML文本 该文本如下 <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Insert title here</title> <style type="text/css"> ...
分类:
其他好文 时间:
2020-11-17 13:02:00
阅读次数:
24
Markdown介绍 什么是Markdown Markdown是一种纯文本、轻量级的标记语言,常用作文本编辑器使用。和记事本、notepad++相比,Markdown可以进行排版;和Word相比,Markdown排版更容易且文件大小更小;和HTML相比,Markdown更容易书写。通过Markdow ...
分类:
其他好文 时间:
2020-11-17 12:44:26
阅读次数:
9