1.前端基础知识过关的游戏,挺有意思。游戏链接 (出处) ...
分类:
其他好文 时间:
2019-11-06 16:34:34
阅读次数:
74
将表情转为字符: 应用场景: 提交表单中的表情符号转为字符串, 便于后台存储. function utf16toEntities(str) { var patt=/[\ud800-\udbff][\udc00-\udfff]/g; // 检测utf16字符正则 str = str.replace(p ...
分类:
Web程序 时间:
2019-11-06 15:22:59
阅读次数:
160
HttpFileCollection upFiles = Request.Files; if (upFiles.Count > 0 && upFiles.Count < 2) { string wenjianjia = "a_" + DateTime.Now.ToString("yyyy-MM-dd ...
分类:
Web程序 时间:
2019-11-06 10:29:59
阅读次数:
99
1 import re 2 import requests 3 from bs4 import BeautifulSoup 4 5 url = 'http://www.biquge6.com/11_11147/' 6 r = requests.get(url) 7 b = BeautifulSoup ...
分类:
其他好文 时间:
2019-11-05 21:48:10
阅读次数:
115
需求:字符串忽略大小写搜索和替换 解决: 使用re.IGNORECASE 缺陷 解决: ...
分类:
其他好文 时间:
2019-11-05 21:40:07
阅读次数:
109
路由 SPA: single page application 单页面应用 特点: 速度快,数据ajax请求,通过路由,页面不会整体重载 实现: 路由 -> 根据url的不同,加载组件 区别:https://www.cnblogs.com/nangezi/p/9201226.html 使用流程: - ...
分类:
其他好文 时间:
2019-11-05 21:32:45
阅读次数:
86
Algorithm 给你一个有效的 IPv4 地址 address,返回这个 IP 地址的无效化版本。所谓无效化 IP 地址,其实就是用 "[.]" 代替了每个 "."。 [Defanging an IP Address]( https://github.com/felixzfq/leetcode/ ...
分类:
其他好文 时间:
2019-11-05 01:12:17
阅读次数:
116
We should use the sieve f vibrating screen carefully, avoid overload work so as to prolong its service life. Loose the clamp bolt, remove the up frame... ...
分类:
其他好文 时间:
2019-11-04 13:59:59
阅读次数:
94
var messages = {};$.each($("input[required=true]"), function (i, item) { var v = $(item).parent().prev("p").children("span").text().replace(":*", ""); ...
分类:
其他好文 时间:
2019-11-04 13:58:30
阅读次数:
82
let first = this.data.date //开始时间 let second = e.detail.value //结束时间 var data1 = Date.parse(first.replace(/-/g, "/")); var data2 = Date.parse(second.r... ...
分类:
Web程序 时间:
2019-11-04 11:56:07
阅读次数:
372