1. Description: 2. Examples: 3.Solutions: 1 /** 2 * Created by sheepcore on 2019-05-07 3 * Your MinStack object will be instantiated and called as suc ...
分类:
编程语言 时间:
2020-03-02 14:56:29
阅读次数:
79
import java.io.*; public class TestFileOutputStream{ public static void main(String[] args){ try{ FileOutputStream out = new FileOutputStream("D:/Java ...
分类:
其他好文 时间:
2020-03-02 13:03:34
阅读次数:
55
在FireMonkey项目中,我建立一个TFrame,放置一个Text对象,然后设置: 设置Text1.Margins.Right为49。 现在我们有了一个TFrame2类,从这个类再继承一个新的TFrame。 现在我们从Frame2继承出一个Frame3,然后,我们设置Frame3: 把Text1 ...
分类:
其他好文 时间:
2020-03-02 12:57:02
阅读次数:
98
0、题目描述 输入一个链表的头结点,从尾到头反过来打印出每个节点的值。 1、解法 用栈即可。 class Solution { public: vector printListFromTailToHead(ListNode* head) { stack step; vector ans; ListN... ...
分类:
其他好文 时间:
2020-03-02 12:52:06
阅读次数:
58
前端点击劫持的原理:通过向我们的页面中添加Iframe,并将Iframe设置成透明,在页面相应的地方设置一些操作引导,让用户在不知不觉中发送一些请求。 解决前端点击劫持的手段就是在服务器端的响应报文中增加X-Frame-Options配置。X-Frame-Options值有3种: 1、DENY:无论 ...
分类:
Web程序 时间:
2020-03-02 10:31:21
阅读次数:
97
using System; namespace Demo { class Program { static void Main(string[] args) { try { BLLLayer(); } catch (Exception ex) { Console.WriteLine(ex.Stack ...
spring项目跑起来,只需要spring-context这1个依赖项就行,参考下面: 一、pom.xml 1 <?xml version="1.0" encoding="UTF-8"?> 2 <project xmlns="http://maven.apache.org/POM/4.0.0" xm ...
分类:
编程语言 时间:
2020-03-02 00:50:28
阅读次数:
155
题目描述 输入一个链表,反转链表后,输出新链表的表头。 题解一:栈 1 public static ListNode ReverseList(ListNode head) { 2 if(head==null||head.next==null){ 3 return head; 4 } 5 Stack< ...
分类:
其他好文 时间:
2020-03-02 00:33:49
阅读次数:
66
1 <?xml version="1.0" encoding="UTF-8"?> 2 <beans xmlns="http://www.springframework.org/schema/beans" 3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-in ...
分类:
编程语言 时间:
2020-03-02 00:32:37
阅读次数:
77
用iframe的location.reload(true); 方法来刷新外部URL会报 Blocked a frame with origin xxxx from accessing a cross-origin frame. 的跨域错误,这个时候就要用另外一种方法来刷新页面 <span class ...
分类:
其他好文 时间:
2020-03-01 22:04:21
阅读次数:
228