在浏览器下编辑,习惯按住Ctrl+S键保存编辑内容。而网页的“ctrl + s”被默认为保存页面。 需要增加快捷保存方式 ctrl+s. $(window).keydown(function(event) { //alert( event.ctrlKey + ' ' + event.metaKey ...
分类:
其他好文 时间:
2020-07-10 11:39:44
阅读次数:
64
# coding: utf-8 get_ipython().run_line_magic('matplotlib', 'notebook') import matplotlib.pyplot as plt import tensorflow as tf import tensorflow.contr ...
分类:
其他好文 时间:
2020-07-10 09:31:57
阅读次数:
78
uni-app实现文件上传功能 目前找到的比较好用的一款第三方插件 文件上传插件地址 https://ext.dcloud.net.cn/plugin?id=1015 插件下载选择下载示例项目zip ,可以直接运行项目查看效果 目录结构如下 ; if ($lock->get()) { // 处理业务逻辑 sleep(3); $lock->release( ...
分类:
其他好文 时间:
2020-07-09 22:22:13
阅读次数:
117
题意:如下是一个三角形ABC.$点D,E和F是三角形ABC的三等分点,$求$三角形PQR$的面积。 分析:三等分点的坐标可以推导出来,比如求D的坐标,D的坐标为$(\frac{2 * B.x + C.x}{3}, \frac{2 * B.y + C.y}{3})$,然后求出$三个交点P, R, Q$ ...
分类:
其他好文 时间:
2020-07-09 19:45:35
阅读次数:
186
console.log(global); /* Object [global] { global: [Circular], clearInterval: [Function: clearInterval], clearTimeout: [Function: clearTimeout], setInt ...
分类:
其他好文 时间:
2020-07-09 19:31:27
阅读次数:
61
LimitedNnumber('.eventBox', '.viewBox', 50) /* * eventBox:输入框id或者class * viewBox:提示元素id或者class * textLength:限制长度 */ function LimitedNnumber(eventBox, ...
分类:
其他好文 时间:
2020-07-09 17:50:24
阅读次数:
64
[Eslint 中文开发手册no-return-assign (Rules) - Eslint 中文开发手册JavaScript 的一个有趣的,有时令人困惑的方面是,任务几乎都可以发生。因此,当真正的意图进行比较时,错误的等号可能最终导致分配。使用return陈述时尤其如此。例如:function ... ...
分类:
其他好文 时间:
2020-07-09 12:35:10
阅读次数:
110
一.借用原型对象实现继承 class Person { constructor (name, age) { this.name = name this.age = age } info () { console.log("I am " + this.name) } } class Student e ...
分类:
编程语言 时间:
2020-07-09 01:16:36
阅读次数:
89
0x01 进入页面如下,我们发现有两个按钮,login和join 一般第一步我们应该是先对网站进行扫描,看看有没有扫描目录和文件,但是我在扫描的时候发现返回的状态码全是200,显然是做了手脚,但是这里我们还可以通过返回的页面长度来判断,因为不存在的页面都重定向到一个页面,发现存在robots.txt ...
分类:
Web程序 时间:
2020-07-09 01:08:46
阅读次数:
121