写一个过滤器 getTime(item) { const date = new Date( //这一步是根据我后端返回的时间格式处理的,可选用 item.replace(/\-/g, "/").substring(0, item.indexOf(".")) ); const Y = date.get ...
分类:
Web程序 时间:
2020-07-01 12:19:18
阅读次数:
76
1,position定位(推荐) <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> <style type="text/css"> .box01{ height: 300px; /* 这里可以改变 */ widt ...
分类:
Web程序 时间:
2020-07-01 09:39:51
阅读次数:
67
栈-先进后出 class Stack(): def __init__(self): self.items = [] def push(self,item): self.items.append(item) def pop(self): return self.items.pop() def peek ...
分类:
编程语言 时间:
2020-07-01 00:22:01
阅读次数:
98
给定一个 m x n 的矩阵,如果一个元素为 0,则将其所在行和列的所有元素都设为 0。请使用原地算法。 function setZeroes(matrix) { let x = [],y = [] for(let i = 0;i < matrix.length;i++){ let item = m ...
分类:
其他好文 时间:
2020-06-30 22:41:28
阅读次数:
46
如何进行表单验证,需要注意什么问题 1.表单验证是指在用户提交表单的时候对用户输入的数据进行检查有没有错误,提示用户输入正确地数据 2.我最初是采用表单的单击按钮进行提交,也就是<input type="button" onclick="return0 yanzhen()" value="验证">, ...
分类:
其他好文 时间:
2020-06-30 22:24:50
阅读次数:
80
form里面不能用button代替<input type="button"/> button这个按钮直接写在form里面,则看到效果是一瞬间的,是不起作用的,要在form里面添加按钮就采用<input type="button"/>或者把button写在表单外面,则作用是一样的 <!DOCTYPE ...
分类:
其他好文 时间:
2020-06-30 20:37:15
阅读次数:
39
set 集合 set 集合: 作用:集合之间的交差并补; 特点:无序,自动去重; 对于set 的值是 可哈希的数值,例如:int float bool complex str tuple 定义集合 setvar = set() #空集合setvar = {'北京','武汉','内蒙古'}print( ...
分类:
其他好文 时间:
2020-06-30 20:29:51
阅读次数:
46
import shelve a = shelve.open('1') b = [1,2,3] a['b'] = b a.close()a['b'] Traceback (most recent call last):File "C:\Users\Administrator\AppData\Local ...
分类:
其他好文 时间:
2020-06-30 17:22:01
阅读次数:
66
option = { xAxis: { type: 'category', data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'] }, yAxis: { type: 'value' }, series: [{ data: [120, 200, ...
分类:
其他好文 时间:
2020-06-30 16:02:33
阅读次数:
165
因需要在用户列表中点详情按钮来到当前页,所以需要展示分组详情,并展示当前所属角色组的用户 public async Task<ActionResult> Details(string id) { //查找是否存在角色组 var role = await _roleManager.FindByIdAs ...
分类:
其他好文 时间:
2020-06-30 14:47:52
阅读次数:
161