Miya shut down, unable to escape the fate of vertical e-commerce

Welcome to the WeChat subscription number of “Sina Technology”: techsina Text / Lingling Source/Bohu Finance (ID:bohuFN) Another vertical e-commerce player has fallen. On July 1, the official website of Miya announced that it has decided to stop the Miya App service on September 10, 2022. The announcement stated that before the platform is closed, consumer […]

Miya shut down, unable to escape the fate of vertical e-commerce Read More »

LeTV is addicted to self-defeating, Dangdang relies on touching porcelain

Welcome to the WeChat subscription number of “Sina Technology”: techsina Text / Pastoral Source/spiral lab (ID: spiral_lab) When the former first-tier Internet companies gradually declined, how to regain the market’s attention, LeTV and Dangdang are two models worth studying. These two companies, one of which was the world’s first IPO listed company in the industry,

LeTV is addicted to self-defeating, Dangdang relies on touching porcelain Read More »

Event Source (17): Read the events stored in the hand-carved Event Store

July 7 18::09~19:21; 21:15~23:23; July 8 13:45~16:27 ▲Store Checkpoints in the Event Store foreword Although using EventStoreDB, a database specially designed for Event Sourcing and CQRS, can reduce a lot of development work, in practice developers may only use relational databases due to company requirements or project constraints. In this case, you must simulate the

Event Source (17): Read the events stored in the hand-carved Event Store Read More »

The Fourth Anniversary

Original link: https://teobler.com/posts/20220713-the-fourth-anniversary While writing this article, I received a congratulatory email for my 4th anniversary, and looking back, I have been lucky since I started… Click to read the original text This article is reprinted from: https://teobler.com/posts/20220713-the-fourth-anniversary This site is for inclusion only, and the copyright belongs to the original author.

The Fourth Anniversary Read More »

Advanced Python (17)—using modules from the standard library

Original link: https://chegva.com/5362.html ◎Knowledge points Overview of modules Use modules from the standard library How to import modules ◎Script practice ▽ Module overview “””I. Overview of the module””” “”” 1. What is a module? A module is a .py file of python. Variables, functions, and classes can be defined in a module. The variables, functions,

Advanced Python (17)—using modules from the standard library Read More »

[JS] fetch() usage replaces ajax

Article directory fetch basic use Response object 1. Synchronization properties 2. Judgment request 3. Operation header 4. Read the content 5. Create a copy 6, the bottom interface custom HTTP request cancel the fetch request fetch basic use The Fetch API provides an interface for obtaining resources (including cross-domain requests), which is used to replace

[JS] fetch() usage replaces ajax Read More »

js implements the copy function

js implements the copy function 1. Specific scene The front-end sometimes needs to implement the function of clicking a button to copy. At this time, the user cannot manually select the content and right-click to copy. 2. Implementation method 1. document.execCommand (1) concrete realization When copying, first select the text, then call document.execCommand(‘copy’), the selected

js implements the copy function Read More »

urlencode encoding in js

urlencode encoding encodeURIComponent in js (the specific content of the encoding) Decode decodeURIComponent (the specific content of the decoded code) Rationale: Encode the components of the URL individually, not for encoding the entire URL … The post urlencode encoding in js first appeared on Lenix Blog . This article is reprinted from https://blog.p2hp.com/archives/9069 This site

urlencode encoding in js Read More »

this points to the problem, the onclick event is bound to the label this points to the problem

<input type=”button” value=”modify” οnclick=”changeContent()”> The function changeContent written in onclick on the element is equivalent to calling the function directly. The this used in the function points to the global object window, instead of pointing to the element Then to get the object of the node where the onclick is located, we need to pass

this points to the problem, the onclick event is bound to the label this points to the problem Read More »

JS implements a method for randomly generating strings (length can be specified)

1. Define a random interception string const _charStr = ‘abacdefghjklmnopqrstuvwxyzABCDEFGHJKLMNOPQRSTUVWXYZ0123456789’; 2. Define the randomly generated index function /** * 随机生成索引* @param min 最小值* @param max 最大值* @param i 当前获取位置*/ function RandomIndex(min, max, i){ let index = Math.floor(Math.random()*(max-min+1)+min), numStart = _charStr.length – 10; //如果字符串第一位是数字,则递归重新获取if(i==0&&index>=numStart){ index = RandomIndex(min, … The post JS implements a method to randomly

JS implements a method for randomly generating strings (length can be specified) Read More »