Category:Blogs

  • Several hosting methods of asp.net core

    Time:2020-4-2

    Kestrel Kestrel is a cross platform web server for asp.net core, which is included in the asp.net core project template by default. Kestrel supports the following scenarios: HTTPS Used to enable the opacity upgrade of websocket UNIX socket for getting high performance of nginx Http / 2 (except Mac OS †) Kestrel can be used […]

  • Example of FTP image upload function implemented by ThinkPHP framework

    Time:2020-4-2

    The example of this paper describes the function of FTP image upload implemented by ThinkPHP framework. To share with you for your reference, as follows: Background: The image upload function should be very common. In this paper, I refer to the integration method in ThinkPHP framework to sort out the FTP image upload function, so […]

  • Analysis of the implementation method of JavaScript system conversion

    Time:2020-4-2

    In this paper, an example is given to illustrate the implementation of JavaScript base conversion. To share with you for your reference, as follows: JavaScript base conversion Decimal to other base ToString () is called without parameters, that is, toString (10) is the default, If you want to display numbers in other bases, just pass […]

  • Practical examples of common API interfaces for HTML5 video

    Time:2020-4-2

    1、 Although some attributes are of boolean type, it is still recommended to write in XHTML (attribute name = attribute value) format to avoid errors (the bold attributes below are common attributes) attribute value Function description controls controls Show playback controls or not autoplay autoplay Set whether to play automatically after opening browser width Pilex […]

  • Div nesting HTML without iframe

    Time:2020-4-2

    In recent jobs, you need to nest pages without iframe, so you have to nest them in div with jQuery method. Copy code The code is as follows: <script type=”text/javascript”> $(document).ready(function() { $(“#button”).click(function() { $(“#content”).load(“index.jsp”); }); }); </script> As long as there are so many codes, the “button” is the ID of a button, and […]

  • Basic knowledge of Java regular expression

    Time:2020-4-2

    As we all know, in the process of program development, it is inevitable to encounter the situations that need to match, find, replace and judge strings, and these situations are sometimes more complex. If we use pure coding method to solve these problems, it will often waste the time and energy of programmers. Therefore, learning […]

  • Detailed explanation of the difference between CSS link and @ import

    Time:2020-4-2

    How to add CSS to HTML? There are three ways to set CSS in HTML: Inline embedded Import link Import – @ import 1. Inline. That is, set CSS in the style attribute of HTML tag. It is worth noting that the name value pairs of CSS code are connected with colon: and separate different […]

  • Mongodb dB. Serverstatus() output content Chinese comment

    Time:2020-4-2

    Version 1: Field Example Value Explanation Host te.rzw.com:27018 And port monitored by running instance version 1.8.3 Version used by the current instance Process mongod Is the current instance mongod or mongos Uptime 231905 Continuous normal operation time of the instance, in seconds uptimeEstimate 223083 Continuous normal operation time based on mongodb internal coarse-grained timer localTime […]

  • Jsp + jQuery using Ajax to call JSON

    Time:2020-4-2

    The example of this paper describes the implementation of JSP + jQuery using Ajax to call JSON. To share with you for your reference, as follows: Reception: <script type=”text/javascript” src=”jquery-1.5.1.min.js”></script> <script type=”text/javascript”> //test function test(uid) { If (confirm (“confirm the user action” + uid + “? ()) { var date = new Date(); var param […]

  • Explain the grep command in shell

    Time:2020-4-2

    Search text files with ‘grep’ If you want to find a string in several text files, you can use the ‘grep’ command. ‘grep’ searches the text for the specified string. For example, suppose you are searching for a file with the string ‘magic’ in the ‘/ usr / SRC / Linux / documentation’ Directory: $ […]

  • Reg2vbs.vbs convert reg file to VBS file save script home revision

    Time:2020-4-2

    Copy codeThe code is as follows: ‘***************************************************************************** ‘ FileName: Reg2Vbs.VBS ‘ Author: baomaboy ‘Abstract: convert reg file to VBS file to save‘***************************************************************************** Dim WshShell,FSO On Error Resume Next Set WshSHell = WScript.CreateObject(“WScript.Shell”) Set FSO = CreateObject(“Scripting.FileSystemObject”) Set Args = WScript.Arguments CloseTime = 5 FileName = WScript.ScriptName FileFullName = WScript.ScriptFullName FilePath = FSO.GetParentFolderName(FileFullName) InsPath = FSO.GetSpecialFolder(1) […]

  • Randomly generating any number of license plate numbers in Python

    Time:2020-4-2

    When setting up the class, my roommate encountered the problem of generating 500W license plate number, so I wrote a program of randomly generating license plate number, which I hope you can adopt. Note: Python implementation import random def chepaihao(len=6): Char0 = ‘Beijing, Tianjin, Shanghai, Chongqing, Hebei, Yunnan, Liaoning, Hunan, Anhui, Shandong, new Jiangsu, Zhejiang, […]