在 window-ref.ts 的实现里,定义了一个每隔 300 毫秒,通过 fromEvent 发射一个 resize event 的Observable: /** * Returns an observable for the window resize event and emits an e ...
分类:
Web程序 时间:
2021-04-19 16:03:11
阅读次数:
0
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="wi ...
分类:
Web程序 时间:
2021-04-19 16:04:22
阅读次数:
0
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="wi ...
分类:
Web程序 时间:
2021-04-20 14:02:22
阅读次数:
0
golang easyjson使用 1.先安装easyjson go get -u github.com/mailru/easyjson/ 2.在结构体上加//easyjson:json的注解 //easyjson:json type School struct { Name string `jso ...
分类:
Web程序 时间:
2021-04-20 14:21:08
阅读次数:
0
利用SASS/SCSS切换Vue项目主题 最近在做的项目使用到了主题切换,我也趁此机会学习了一下SCSS/SASS这门CSS编译型语言,特此研究并带实现一个Vue Demo中实现主题切换。 SCSS是SASS兼容CSS的版本,本文内全部使用SCSS一称。 ??大体思路如下: 1.使用vuex全局执行 ...
分类:
Web程序 时间:
2021-04-20 14:27:14
阅读次数:
0
/* get参数处理-url核心模块 */ const url = require('url'); // parse方法的作用就是把URL字符串转化为对象 let str = 'http://www.baidu.com/abc/qqq?flag=123&keyword=java'; let ret ...
分类:
Web程序 时间:
2021-04-20 14:29:23
阅读次数:
0
1.首先需要安装 Autofac 和Autofac.Integration.Mvc install-package Autofac -version5.2.0 install-package Autofac.Integration.Mvc -version 5.0.0 2.编写依赖注入和解析器类,并 ...
分类:
Web程序 时间:
2021-04-20 14:36:31
阅读次数:
0
需求:点击按钮,显示文本和隐藏文本 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>jQuery 入门</title> <script src="/static/jQuery-1.11/jquery-1.11 ...
分类:
Web程序 时间:
2021-04-20 14:39:19
阅读次数:
0
通常我们将 CANVAS 与 webGL 区分开 , 移动端和WEB端区分开 类似于这种关系: // 通过getElementById()方法获取canvas画布 var c2dx=document.getElementById('c2dx'); // 通过方法getContext()获取2d上下文 ...
分类:
Web程序 时间:
2021-04-20 14:57:58
阅读次数:
0
SQL注入 一、LOW难度SQL注入 1.判断注入类型 1.输入1 2.输入 1' and 1=2,报错 3.输入 1' and 1=2 #,无报错 得知为字符型注入 2.猜字段数 方法有两种: ① 1' order by N # ② 1' union select 1, 2, ... # 采用第一 ...
分类:
Web程序 时间:
2021-04-20 15:02:48
阅读次数:
0
一.选择器 1.基本 名称 用法 描述 #id $("#myDiv"); 根据给定的ID匹配一个元素 element $("div"); 根据给定的元素标签名匹配所有元素 .class $(".myClass"); 根据给定的css类名匹配元素 * $("*") 匹配所有元素 selector1,s ...
分类:
Web程序 时间:
2021-04-20 15:07:11
阅读次数:
0
[^"]* // []里面的^表示 非, *表示任意数量,这一段的意思是: 匹配 任意数量的不为"的字符 "></img> // "></img> ...
分类:
Web程序 时间:
2021-04-20 15:07:54
阅读次数:
0
一.Ubuntu环境搭建 1. 安装.NET SDK or .NET Runtime 先为Ubuntu安装运行时,一般情况下安装运行时即可 .NET版本Snap包 5.0 dotnet-runtime-50 3.1(LTS) dotnet-runtime-31 3.0 dotnet-runtime- ...
分类:
Web程序 时间:
2021-04-20 15:09:49
阅读次数:
0
Meta 表示变化 name 名字 viewport 视口 centent 内容 device 配置 scale 比例&范围 Maximum 最大比例&范围&限度 screen 屏幕 手机兼容性适配 @media screen and (max-width:600px) { .content{wid ...
分类:
Web程序 时间:
2021-04-20 15:42:04
阅读次数:
0
###重装系统,安装python3.7.5之后,使用pip3 install ipython时出现了报错信息: Can't connect to HTTPS URL because the SSL module is not available 1、cd 到Python-3.7.5目录下,重新编译安 ...
分类:
Web程序 时间:
2021-04-20 15:43:58
阅读次数:
0
php做一个webserver 1. 目标 利用php实现一个不依靠nginx/apache的简易webserver,同时支持Router路由功能,实现如在命令行键入php server 8080启动的功能 2. 流程 做一个webserver需要做的模块: 监听连接进来 客户端连接服务端 服务端接 ...
分类:
Web程序 时间:
2021-04-20 15:44:49
阅读次数:
0
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>邮件模板</title> </head> <body> <table width="1024" border="0" cellspacing="0" cellp ...
分类:
Web程序 时间:
2021-04-21 11:46:08
阅读次数:
0
代理 1.不要乱设置代理:git config --global --unset http.proxy 2.openssl 问题: git config --global http.sslVerify "false" 3.443 重新下载 4.提示xx端口问题:去配置文件删除这个端口 5.提交代码给 ...
分类:
Web程序 时间:
2021-04-21 11:47:54
阅读次数:
0
ab命令原理 Apache的ab命令模拟多线程并发请求,测试服务器负载压力,也可以测试nginx、lighthttp、IIS等其它Web服务器的压力。 ab命令对发出负载的计算机要求很低,既不会占用很多CPU,也不会占用太多的内存,但却会给目标服务器造成巨大的负载,因此是某些DDOS攻击之必备良药, ...
分类:
Web程序 时间:
2021-04-21 11:48:49
阅读次数:
0
json字段格式 { "a": { "10000": 11, "20000": 22 }, "b": { "10000": 14, "20000": 255 } } with q as ( select t.member_id, replace(t.prod_code, '"') as prod_c ...
分类:
Web程序 时间:
2021-04-21 11:55:30
阅读次数:
0