Tag:javascript

  • Relearn front end learning notes (18) — closure and execution context of JavaScript

    Time:2019-12-9

    Note description The front-end of re learning is a column opened by Cheng Shaofei [former head of mobile Taobao] in Geek time, 10 minutes a day, to reconstruct your front-end knowledge system. The author mainly sorts out some key notes and insights of the learning process, and can join the column of winter to learn […]

  • HTML 5 upload image file (including drag, preview, upload, beautification)

    Time:2019-12-9

    Welcome to Laker’s blog, the program of attackGithub:https://github.com/younglakerMicro blog: jiangxiaohu Laker The last article talked about how to upload files. This article talks about the details of image upload, preview and so on. About interface File API File – a stand-alone file; provides read-only information such as name, file size, mimeType, and a reference to […]

  • A summary of the use of Vue and element UI

    Time:2019-12-9

    A summary of the use of Vue and element UI 1.Use @ scroll when listening for scrolling events on componentsnative=”, direct use of @ scroll is invalid2.El table when you see an infinite increase in width, you need to set El tableOuter layerThe style is overflow: hidden,el-tableThe style is height: 100%3.Add components in El tab […]

  • Element UI table component + sortablejs to implement row dragging and sorting

    Time:2019-12-9

    Preface Ms. operator said that she wanted to drag and drop the sorting function directly. In the past, the ads in No. 6 may be changed to No. 1 position due to the money added by Mr. Jin’s father. The drag and drop operation is very convenient Effect Realization way Template section <el-table v-loading=”loading” :default-sort=”{prop: […]

  • Design and implementation of disaster recovery cache service in Ma cellular recommendation system

    Time:2019-12-9

    The database is suddenly disconnected, the third-party interface is late to return results, and the network shakes during peak hours… When the program is unexpected, our application can tell the caller or the user “sorry, there is something wrong with the server”; or find a better way to improve the user experience. Background When the […]

  • Package.json file introduction

    Time:2019-12-9

    1. overviewUnder the root directory of each project, there is usually a package.json file, which defines the various modules required by the project and the configuration information of the project. The NPM install command automatically downloads the required modules according to the configuration file. 2. Field introduction { “Name”: “module name”, “Version”: “0.0.1”, // module […]

  • How to publish NPM packages for projects created with vue-cli 3.0

    Time:2019-12-9

    in usevueWhen developing a project, if we want to release a package, sometimes it’s a bit confusing. We don’t know how to modify the default settings of scaffolding. Here are some common operations. Create index.js to export modules We need to export the components in theindex.jsFor unified export in the file, it may need to […]

  • Session and login mechanism

    Time:2019-12-9

    githubAddress: stamp here session concept A solution for maintaining state between client and server The storage structure of this solution Characteristic BecauseSessionIt is stored in the form of a text file on the server side, so it is not afraid of the client modifying the session content. (you can also use other storage methods such […]

  • Command line tool lint MD for writing format specification in Chinese markdown

    Time:2019-12-9

    lint-md The command line tool used to check the format specification of Chinese markdown is developed based on ast, and it is convenient to integrate CI. Cli tool to lint your markdown file for Chinese. install npm i -g lint-md Use Usage: <lint-md> <files…> [options] lint your markdown files Options: -v, –version output the version […]

  • Basic data structure and JS data storage

    Time:2019-12-9

    In the past, the front-end development had less interaction with data storage, and JavaScript had an automatic garbage collection mechanism. Data structure and storage related concepts are easily ignored by the front-end er. But because of the current trend of large front-end, in fact, these concepts have gradually become a necessary skill for a front-end […]

  • Explore the knowledge of private members in JavaScript

    Time:2019-12-9

    pit First dig a hole – this is a piece of JS code. There are two things to do in business view: layout the forms and maps. Indicates that the prefix is private class BaseView { layout() { console.log(“BaseView Layout”); } } class BusinessView extends BaseView { layout() { super.layout(); this._layoutForm(); this._layoutMap(); } _layoutForm() { […]

  • Debugging JavaScript / VBScript script (ie)

    Time:2019-12-9

    Both of these methods can be debugged by using visual studio. First, you can see the debugging of Web script programs that are frequently used:1. To debug the script program in the web page, the debugger needs the host program – here is ie support. In fact, all script program interpreters implement a com debugging […]