• Filters and custom plug-ins in Vue component development


    Filters and custom plug-ins in Vue I can’t think of it. Bring the official oneVue.js allows you to customize filters that can be used for some common text formatting. Filters can be used in two places: Double curly braces and interpolation  v-bind  expression   (the latter is supported from 2.1.0 +). The filter should be […]

  • Analysis of konvajs principle


    preface Those who have used canvas know that it has many APIs and is troublesome to use. For example, if I want to draw a circle, I have to adjust a bunch of APIs, which is not friendly to development. const canvas = document.querySelector(‘canvas’); const context = canvas.getContext(‘2d’); //Set font style context.font = ’24px SimSun, […]

  • Angularjs study notes – Chapter 2 – filter


    1. Currency <!DOCTYPE html> <html ng-app=”app”> <head> <meta Content-Type=”html/text;charset=UTF-8″> <title>ng demo</title> </head> <body ng-controller=”ctrl”> <div ng-controller=”ctrl”> <input type=”number” ng-model=”amount” aria-label=”amount”> <br> Default currency symbol ($): < span > {{amount | currency}} < / span > < br > Custom currency symbol (USD $): < span > {{amount | currency: “RMB ¥”}} < / span > […]

  • Explain the common extension points of asp.net MVC: filter and model binding


    1、 Filter Each request in asp.net MVC will be assigned to a specific action (hereinafter referred to as “method”) under the corresponding controller (hereinafter referred to as “controller”) for processing. Normally, it is OK to write code directly in the method. However, if you want to process some logic before or after the method is […]

  • Distributed storage middleware (1): clean redis in 10000 words and send it to the soul


    preface For the series of distributed topics, the overall intention is to write distributed message middleware, distributed storage middleware and distributed framework.Distributed messaging middleware selects the two most commonly used, which have been written before. Interested friends can have a look. Distributed messaging middleware (1): rabbitmq getting started to high availability! Distributed message middleware (2): […]

  • Eat through micro Services – sleuth of service tracking


    Hello, I’m a side dish. A hope can becomeTalking about architecture with ox xMy man! If you want to be the person I want to be, or pay attention and be a partner, so that the dishes are no longer lonely! This paper mainly introducesSpring cloud service gateway If necessary, refer to If it helps, […]

  • Every little friend who uses canvas should know about fabric.js


    Introduction This article is a continuation of the previous oneI combined our beautiful moments with 10000 picturesFabric Teaching OK, let’s start today’s topic:When we want to draw a basic simple shape on the canvas, using canvas won’t feel cumbersome. However, when any form of interaction is required on the canvas, drawing complex graphics and changing […]

  • What problems can Vue filter solve?


    In fact, Vue filters were built in in Vue 1.0, but they have been removed since the arrival of Vue 2.0, but we may still use them, so we need to define filters ourselves. The following Xiaoqian will show you how to define filters and what types of filters they have. Vue filter classification There […]

  • Implementation of regular script filtering with JS


    (recommended) JS regular knowledge points topic: https://www.jb51.net/article/139831.htm function stripscript(s) {      return s.replace(/<script.*?>.*?<\/script>/ig, ”);  }  Say a little, the master floats by /The content between / is the beginning and end of writing JS regular statements .*? It is a greedy match. If it is not greedy, it is. * match any character, but the greedy one does not contain […]

  • Hidden swagger part web API interface


    background Swagger is the most popular document generation tool for rest APIs, and it is also an online testing tool for APIs. Powerful, who knows who uses it. I don’t have to promote it here. The problem to be solved today is: if some specific API interfaces are not displayed in swagger, that is, filter […]

  • Django 1.8 official document translation: 4-2-4 humanization


    django.contrib.humanize A series of Django template filters help to add “humanistic care” to the data. Add ‘Django. Contrib. Humanize’ to installed_ Apps settings to activate these filters. After performing the above steps, use {% load humanize%} in the template, and you can access the following filters. Cardinal word For numbers 1 to 9, returns the […]

  • Vue basic introduction note 07: filter


    Vue basic introduction notes 07 Filters are used for formatting common text in two places interpolation V-bind expression <!DOCTYPE html> <html lang=”en”> <head> <meta charset=”UTF-8″> <meta name=”viewport” content=”width=device-width, initial-scale=1.0″> <meta http-equiv=”X-UA-Compatible” content=”ie=edge”> <title>Document</title> <script src=”https://cdn.jsdelivr.net/npm/vue”></script> <link rel=”stylesheet” href=”https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css” integrity=”sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u” crossorigin=”anonymous”> </head> <body> <div id=”app”> <p>{{msg | msgFormat(‘a’,’b’)}}</p> </div> <script> //Define global filters //Filters can pass […]