html引入Javascript的方式

2021年01月27日 阅读:496

第一种:直接在标签中中添加事件句柄(在事件名称前加上 on 就是事件句柄),在事件发生时触发JS代码执行 <input type="button" value="" onclick="JS代码"> 第二种:“脚本块”形式,在浏览器进入页面时执行JS代码(注意:脚本块的代码可以任意次数的出现在任意位置 ... 查看全文

.net core 2.2部署到Windows Server 2012 R2 standard

2021年01月27日 阅读:768

安装.net core 2.2 下载地址:https://dotnet.microsoft.com/download/dotnet core/2.2 找到ASP.NET Core Runtime 2.2.7 IIS runtime support (ASP.NET Core Module v2),下 ... 查看全文

【原创】在windows下使用xampp搭建phpcms v9

2021年01月27日 阅读:776

亲自在系统里安装了一遍,遇到了使用最新版本的xampp的坑最终没绕过去,但是降低了版本反而通过了,不得不说phpcms v9真的坑爹哇,居然不支持7.*版本,但是也没找到相关的说明。记录一下,希望其他同学看到我这篇博客,能够少走弯路,开开心心玩儿phpcms v9!!! ... 查看全文

window.getComputedStyle能够获取元素的实际样式,但是低版本的ie8及以下不支持,如何在低版本的ie上兼容类似的功能

2021年01月27日 阅读:495

window.getComputedStyle能够获取元素的实际样式,但是低版本的ie8及以下不支持,如何在低版本的ie上兼容类似的功能 //获取当前样式function getStyle(element, att){ //特性侦测 if(window.getComputedStyle){ //优先 ... 查看全文

AcWing 361. 观光奶牛

2021年01月27日 阅读:559

01规划 设答案为 $ans$。 二分答案,设当前二分值为 $mid$。 设一个环 $S$ 的边权为 $t_1, t_2, t_3...$,点权为 $f_1, f_2, f_3...$ 若 $mid ans$ 每次 $check$ 的时候,一条 $u$ 指向 $v$,边权为 $w$ 的边权变为: $ ... 查看全文

AcWing 891. Nim游戏

2021年01月27日 阅读:781

//a1 ^ a2 ^ ··· ^ an = 0 –>先手必败; //a1 ^ a2 ^ ··· ^ an != 0 –>先手必胜; #include<iostream> using namespace std; int main() { int n; cin >> n; int res = 0; ... 查看全文

AcWing 894. 拆分-Nim游戏

2021年01月27日 阅读:671

#include <cstring> #include <iostream> #include <algorithm> #include <unordered_set> using namespace std; const int N = 110; int n; int f[N]; int sg(i ... 查看全文

AcWing 893. 集合-Nim游戏

2021年01月27日 阅读:640

//只能拿某些特定个数的石子 #include <cstring> #include <iostream> #include <algorithm> #include <unordered_set> using namespace std; const int N = 110, M = 10010; ... 查看全文

UiPath数据抓取Data Scraping的介绍和使用

2021年01月27日 阅读:487

一、数据抓取(Data Scraping)的介绍 使用截据抓取使您可以将浏览器,应用程序或文档中的结构化数据提取到数据库,.csv文件甚至Excel电子表格中. 二、Data Scraping在UiPath中的使用 1.打开设计器,在设计库中新建一个Sequence,为序列命名及设置Sequence ... 查看全文

彻底搞懂 C# 的 async/await

2021年01月27日 阅读:785

前言# Talk is cheap, Show you the code first! Copy private void button1_Click(object sender, EventArgs e) { Console.WriteLine("111 balabala. My Thread I ... 查看全文

windows10 CTCP

2021年01月27日 阅读:505

windows上除了普通tcp之外,有一个CTCP。 据说可以提升长延时情况下的吞吐量。 win7可以方便的通过netsh int tcp set global congestionprovider=ctcp设置。 win10已经不能通过netsh设置了,只能通过power shell,ps设置。 ... 查看全文

AcWing 362. 区间

2021年01月27日 阅读:796

听书上说有贪心 + 数据结构的做法,研究了一下。 朴素贪心 考虑把所有线段按照右端点 $b$ 从小到大排序,依次考虑每一条线段的要求: 如果已经满足要求则跳过 否则尽量选择靠后的数(因为之后的线段的右端点都在这条线段的右边,这样容错更高) 所以,我们可以建一个数组,$d[i]$ 表示 $i$ 数字是 ... 查看全文

WPF customize DelegateCommand

2021年01月27日 阅读:692

using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Text; using System.Threading.Tasks; using... ... 查看全文

解析JSON数据成为对象时,报错exepct '[', but {, pos 1, json

2021年01月27日 阅读:664

调用JSON.parseArray(json, xxx.class);出错! 这个错误是因为你的json是数组,但解析的时候没有加上[]括号,比如 {"name":"fs",“age”:“12”} 才报这个错误。 在json参数加上[]就好了,这样是没问题的: [{"name":"fs",“age” ... 查看全文

Lucene.Net 4.8.0

2021年01月27日 阅读:812

获取全部索引数据 /// <summary>/// 获取所有索引值/// </summary>public static List<dynamic> GetSearchIndexAll(){ var reader = DirectoryReader.Open(FSDirectory.Open(new ... 查看全文

thinkphp 5.0报错pcntl_signal() has been disabled for security reasons问题解决

2021年01月27日 阅读:817

环境centos7thinkphp 5.0think-worker 1.0.1Workerman version:3.5.30PHP version:5.6.9 thinkphp 5.0使用workerman,启动workerman服务端报错 pcntl_signal() has been disa ... 查看全文

关于Spring——IoC(二)

2021年01月27日 阅读:835

一.IoC容器的概念 IoC容器就是具有依赖注入功能的容器,IoC容器负责实例化、定位、配置应用程序中的对象及建立这些对象间的依赖。 应用程序无需直接在代码中new相关的对象,应用程序由IoC容器进行组装。在Spring中BeanFactory是IoC容器的实际代表者。 Spring IoC容器如何 ... 查看全文

以zookeeper为注册中心搭建spring cloud环境bug

2021年01月27日 阅读:765

错误描述: 服务间调用的时候 总是不通 feign.RetryableException: connect timed out executing POST http://common-service/supplywater/deviceManage/keyUnitData 原因、; 以zookee ... 查看全文

MVC架构中各个层使用的注解 (springBoot + mybatis-plus)

2021年01月27日 阅读:777

1 @Service (写在Service层接口的实现类上 XXXServiceImpl) Q: 为什么不直接写在接口上?因为一个接口可能有多个实现 1 @Service 2 public class LogServiceImpl extends ServiceImpl<LogMapper, Log ... 查看全文

JavaScript中的数组(Array)方法你真的了解吗?

2021年01月27日 阅读:675

在过去的几个月,我发现我的拉取请求中存在四个完全相同的 JavaScript 错误。于是我写了这篇文章,总结了如何在 JavaScript 中正确使用地使用 Array 的方法! 用 Array.includes 代替 Array.indexOf “如果你要在数组中查找元素,请使用 Array.in ... 查看全文

【SpringMVC】08 Post请求乱码

2021年01月27日 阅读:753

这是以Post请求方式接受来的中文字符乱码 就像之前JavaWeb阶段的情况一样 所以,按照JavaWeb的方法,我们应该只需要在获取之前设置好编码处理就行了 可以先从这个处理方法开始试试,但是参数在编码之前就已经获取了,所以这样是没有用的 于是测试第二种方法,因为所有的请求都会被过滤器最先拦截下来 ... 查看全文

Windows 下使用 Composer 安装 thinkphp

2021年01月27日 阅读:674

我用 XAMPP 安装 thinkphp 会出错,所以把环境换成了 phpStudy,这样甚至不用到处找安装包,直接去官网有最新版本,PHP 版本也是比较新的。 安装 phpStudy 先去官网下载安装包,安装时不用任何多余操作,选好文件位置,然后全都next。 查看全文

热门文章

推荐文章

最新文章

置顶文章