原创 border-radius詳解分享

border-radius OK,這篇文章詳細介紹border-radius屬性的值得理解,以及在渲染上四個角的表現,如果平時只是用border-radius: 10px加圓角或者用border-radius: 50%做正圓形圖標

原创 嗶哩嗶哩bilibili 部分接口

嗶哩嗶哩bilibili 部分接口APIbilibili網站API獲取動態參數響應示例 bilibili網站API 獲取動態 GET https://api.vc.bilibili.com/dynamic_svr/v1/dyna

原创 前端Javascript繼承方式總結

因爲JS中沒有類的概念,無法像其他語言一樣完成“繼承”,只能通過一些方式進行模擬,即使是ES6中的class也只是一個語法糖,也是通過ES5來完成的繼承。下面介紹JS中的繼承方式。 注:下面用類來指代構造函數。 構造函數繼承 通過

原创 Object,Array,Number,String,普通函數,普通對象,Function等的原型鏈關係——多次面試失敗總結的經驗

以前說到原型鏈就只知道通過原型鏈繼承,構造函數和它的實例之間的原型鏈的關係啊這些東西,最近面試被問得很懵,後來看到一篇文章總結的特別好,當時看明白了,後來面試又忘了一部分,所以今天打算自己總結一下,加深印象。 JS中沒有類的概念,

原创 Leetcode 5182. 刪除一次得到子數組最大和

今天參加了LeetCode第153場周賽,其中第三題和一道經典題目——連續子數組的最大和很像。 我們這道題目的解法和之前這道經典題目的思路有些關係,連續子數組的最大和的解法見鏈接 題目描述 給你一個整數數組,返回它的某個 非空 子

原创 HTTPS原理解析

開門見山地說,衆所周知,HTTPS=HTTP+SSL/TLS,使用非對稱加密算法+對稱加密算法的混合加密算法。 最近在面試過程中被問到幾次這個問題,看過幾篇博客,說的都不是很清楚,理解也有偏差,毫無意外的面試都掛了,今天看到了阮一

原创 Trapping Rain Water

題目描述 Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much w

原创 Multiply Strings

題目描述 Given two non-negative integers num1 and num2 represented as strings, return the product of num1 and num2, also

原创 Swap Nodes in Pairs

題目描述 Given a linked list, swap every two adjacent nodes and return its head.You may not modify the values in the list

原创 Divide Two Integers

題目描述 Given two integers dividend and divisor, divide two integers without using multiplication, division and mod oper

原创 Median of Two Sorted Arrays

題目描述 There are two sorted arrays nums1 and nums2 of size m and n respectively.Find the median of the two sorted array

原创 Longest Palindromic Substring

題目描述 Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 10

原创 Given parentheses

題目描述 Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses. (給出n對小括號

原创 Linux根目錄擴容方法及其涉及的相關磁盤操作

Linux根目錄擴容方法及其涉及的相關磁盤操作 linux下與存儲相關的命令 命令 作用 free 查看內存使用情況 df 查看文件系統/掛載點的存儲使用情況 mkfs 對磁盤進行格式化 du 查看某個文件或者目錄

原创 SVG 之 path

可縮放矢量圖形SVG是基於可擴展標記語言……吧啦吧啦(百度百科上的定義嗯) 最近剛剛忙完我們隊的一個項目的網站,裏面雖然主要用的不是svg,只是很小的一個效果用到了,但是用的時候查閱一下資料啥的感覺像是打開了新世界的大門(可能是太菜的緣故