Tag:copyright

  • Ios13 wkwebview click does not jump, no response.

    Time:2022-4-27

    Since ios13, wkwebview has removed the automatic push function of cookies and can be added by itself.The code is as follows: if (@available(iOS 11.0, *)) { NSArray *cookies = [[NSHTTPCookieStorage sharedHTTPCookieStorage] cookies]; WKHTTPCookieStore *cookieStore = [WKWebsiteDataStore defaultDataStore].httpCookieStore; if (cookies.count > 0) { for (NSHTTPCookie *cookie in cookies) { [cookieStore setCookie:cookie completionHandler:^{ }]; } } } […]

  • The jQuery method find() differs from children()

    Time:2022-4-25

    Ifind() 1.1 description find()Method returns the descendant element of the selected element, all the way down to the last descendant. 1.2 example <div> <p> <span>1</span> </p> <span>2</span> </div> <script> console.log($(‘div’).find(‘span’)); </script> <!– Return to < span > 1 < / span > < span > 2</span> –> IIchildren() 2.1 description children()Method returns all direct child […]

  • Excel complex header export

    Time:2022-4-22

    In our work, we often encounter some requirements of Excel import and export. We can usually use the API provided by POI, etc. But when it comes to processing, the code is very bloated and not elegant.Inadvertently, I checked the code of a long time ago and saw a former colleague and elder. In view […]

  • How to set phpstorm to open multiple project directories in the same window

    Time:2022-4-18

    It started with sublime, a lightweight text editor with a cool appearance. NetBeans was later used to support the development and management of multiple projects in one window. It is also a powerful ide. Later, the IDE used by the company was phpstorm, which was very useful. However, in the process of using phpstorm, it […]

  • Installing sublime Text3 for Linux

    Time:2022-4-10

    Download the Linux Installation Package:http://www.sublimetext.com/3 Get: Sublime_ text_ 3_ build_ 3200_ x64. tar. bz2 Decompression: tar -xvvf sublime_ text_ 3_ build_ 3200_ x64. tar. bz2 sublime_ text_ 3/ sudo mv sublime_text_3/ /opt Create link: sudo ln – S / opt / sublime_ text_ 3/sublime_ text /usr/bin/sublime_ text Create Icon: sudo CP / opt / sublime_ […]

  • How does the father of Linux define “Linux”! Mainly want hackers, computer students to use, study and enjoy!

    Time:2022-3-30

    What is Linux? Linux is a free UNIX like kernel, suitable for 386-at computers, with complete source code. It is mainly used, studied and enjoyed by hackers and computer science students. Most of it is written in C, but a small part is compiled in GNU format, and the boot sequence is in Intel 086 […]

  • Secondary encapsulation of front-end websocket based on sockjs

    Time:2022-3-12

    Due to the business needs, the long connection communication of websocket with the back-end is carried out. After research, it is decided to use sockjs client and stompjs library, and the secondary encapsulation is carried out. package. JSON version: “sockjs-client”: “^1.5.1”, “stompjs”: “^2.3.3”, socketManager.js: import SockJS from ‘sockjs-client’; import Stomp from ‘stompjs’; import lodash from […]

  • Difference between JavaScript event onblur and onfocus

    Time:2022-3-5

    1、 Onblur 1.1 description The onblur attribute is triggered when an element loses focus, and onblur is often used in form validation code (such as when a user leaves a form field). 1.2 example <input type=”text” name=”” id=”” onblur=”javascript:alert(‘onblur’);”> 2、 Onfocus 2.1 description The onfocus attribute is triggered when an element gains focus. Onfocus is […]

  • M1 chip uses cocoapods to report an error [!] Oh no, an error occurred

    Time:2022-2-16

    [solution] Command line 2 (installation): Origin:https://github.com/CocoaPods/CocoaPods/issues/10220#issuecomment-730963835 [command line error message] [email protected] SHShopping % pod update Update all pods Updating local specs repositories ――― MARKDOWN TEMPLATE ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― Command /usr/local/bin/pod update Report What did you do? What did you expect to happen? What happened instead? Stack CocoaPods : 1.10.0 Ruby : ruby 2.6.3p62 (2019-04-16 revision 67580) [universal.arm64e-darwin20] […]

  • Maximum length of C identifier

    Time:2022-2-15

    Visual studio 2019 compiler, C identifier length The maximum length is 4095, half width characters. One character takes up one character, full width characters take up two characters, and Chinese characters take up two characters. If it exceeds, an error will be reported Author: dianmoCopyright: the copyright of this article belongs to the authorReprint: reprint […]

  • Beginner operator — type of dynamic programming

    Time:2022-1-31

    Reprint the article of a big man: Three forms of dynamic programmingEveryone for me         The value fi of state I consists of several known state values FK, FM FY deduces, if summation, take the maximum value1I am for everyone     When the value fi of state I is updated (not […]

  • Sword finger offer 38 Arrangement of strings

    Time:2022-1-19

    Enter a string and print out all the arrangements of characters in the string. You can return this string array in any order, but there can be no duplicate elements. Example: Enter: S = “ABC”Output: [“ABC”, “ACB”, “BAC”, “BCA”, “cab”, “CBA”] Source: leetcodeLink:https://leetcode-cn.com/problems/zi-fu-chuan-de-pai-lie-lcofThe copyright belongs to Lingkou network. For commercial reprint, please contact the official […]