IAP远程升级常用的通讯协议有TCP、HTTP、FTP、MQTT等。其中HTTP、FTP和MQTT都属于应用层协议。 网上的升级参考步骤: 我自己的升级方法: 以太网(W5500)+ModbusTCP+TFTP+TCP Client Message +eerom 1远端通过ModbusTCP发送wr ...
分类:
其他好文 时间:
2021-04-28 12:19:25
阅读次数:
0
添加一个类继承JsonResult public class CustomJsonResult : JsonResult { private const string _dateFormat = "yyyy-MM-dd HH:mm:ss"; public CustomJsonResult() { s ...
分类:
Web程序 时间:
2021-04-28 12:07:11
阅读次数:
0
unique(arr) { const res = new Map(); return arr.filter( (arr) => !res.has(arr.strat_id) && res.set(arr.strat_id, 1) ); }, ...
分类:
编程语言 时间:
2021-04-28 12:04:33
阅读次数:
0
【题意】 求最长回文子串 【分析】 把原字符串翻过来接到后面,中间放一个特殊字符 然后枚举每一个点作为回文串的中心,计算当前位置的后缀和对应的延长位置上的后缀的最长公共前缀 具体的:分类讨论如果i为奇数长度的中心lcp(i,n-i-1),i为偶数长度回文串的中心的一个lcp(i,n-i) 【代码】 ...
分类:
其他好文 时间:
2021-04-28 12:01:17
阅读次数:
0
题目 Atcoder 思路 代码 #include <iostream> #include <cstring> #include <algorithm> #include <queue> using namespace std; const int N = 500010, INF = 1e9; in ...
分类:
其他好文 时间:
2021-04-28 11:51:48
阅读次数:
0
在打包时使用了UglifyJs压缩JS,但是UglifyJs无法解析ES6,才出现了上述问题。网上查询解决方案,这个方案是:打开build/webpack.base.config.js 文件,resolve部分加入该报错文件 { test: /\.js$/, loader: 'babel-loade ...
分类:
其他好文 时间:
2021-04-27 15:24:39
阅读次数:
0
// ts版-vue private justPalyOne() { const audios = document.querySelectorAll("audio"); // 暂停函数 const pauseAll = (exclude: any): any => { audios.forEach ...
分类:
其他好文 时间:
2021-04-27 15:20:20
阅读次数:
0
思路: 水题,略过 Tip: 无 #include <bits/stdc++.h> using namespace std; const int maxn = 1000 + 5; int ans[maxn]; int main() { int a, b, n; cin >> a >> b >> n; ...
分类:
其他好文 时间:
2021-04-27 15:09:43
阅读次数:
0
思路: 水题,略过 Tip: 无 #include <bits/stdc++.h> using namespace std; const int maxn = 1000 + 5; queue<char> que[maxn]; stack<char> s; int main() { int n, m, ...
分类:
其他好文 时间:
2021-04-27 15:08:37
阅读次数:
0
#include <iostream> #include <algorithm> #include <cstdio> using namespace std; const int N = 2e5 * 20; int a[N], b[N], root[N]; struct President_Tree ...
分类:
其他好文 时间:
2021-04-27 15:01:57
阅读次数:
0