Tag:local

  • Configuration of php-fpm and nginx

    Time:2020-12-30

    A series of articles: (MAC) PHP installation and configuration Compiling PHP configuration parameters (MAC) PHP extension installation Configuration of php-fpm and nginx Default configuration of php-fpm preface PHP is finally compiled and installed. The next step is configurationPHP-FPMandnginx。 Configure php-fpm 1. First look at the default php-fpm configuration path php-fpm -h # default: /usr/local/php7.3/ The […]

  • Django — form component checking source code reading notes

    Time:2020-12-29

    Form component verification source code 1. Knowledge reserve Form component: write a class, inherit form and write fields 2 do data verification (always useful) 3 template rendering (mixed development, front and back end separation is not used) 4 check data: form = myform (data = Dictionary) 5 field parameter: error_ messages,widget,required,max_ length,min_ length,label 6 error […]

  • The fluent removes the blue wave effect when the rolling component is pulled to the bottom

    Time:2020-12-18

    This blue wave is sometimes unnecessary. At present, I think it’s the only one that can be seen on the whole screen with a long list. However, various small modules (such as: There is no need to use listview for navigation list or GridView for grid layout chart navigation). What’s more, when this small listview […]

  • Use of uni app components

    Time:2020-12-16

    Global component settingsmain.js //Common components, global registration import tsBad from ‘components/teaset/components/ts-badge.vue’; //Global registration Vue.component(“ts-bad”,tsBad) <ts-bad></ts-bad> Local component settingsUnder Vue file <script> //Component local registration import tsBann from “components/teaset/components/ts-banner.vue” export default { components:{ tsBann }, data() { return { title: ‘index’, list: [] } }, onLoad() { }, methods: { } } </script> After registering in […]

  • Flowd and DIJ record path

    Time:2020-11-28

    P [i] [J] defines the next point from I to j, and the point where the subproblem becomes P [P [i] [J] [J], where the iteration stops P [i] [J] = J; If ij has no path, I! = J and P [i] [J] = J; void showpath(int p[][N],int i,int j){   if(i!=j&&p[i][j]=j)cout<   cout< 1.shortpath_DIJ void shortpath_DIJ(int […]

  • DRF — DRF user defined authentication class, user defined authority function and use

    Time:2020-11-23

      #Note: authentication > authority > frequency the first step of authentication is that if the authentication is not passed, the authority will not be obtained, and if the authority is not passed, the frequency will not be reached 1User defined authentication class 1 use -Define a class that inherits baseauthentication class LoginAuth(BaseAuthentication): def authenticate(self, […]

  • How to register global components

    Time:2020-11-11

    Some very basic components may be used in many places, but if they are written as separate components, they need to be introduced and registered as local components where they are used. It is very troublesome to write in this way, and it is also troublesome to maintain it. For some basic components, such as […]

  • HTML allows the local forced scrollbar to appear without destroying the overall style and layout

    Time:2020-11-6

    First paste the effect picture:  Local scroll bar, so that the overall style and layout will not be destroyed Example code: Copy code The code is as follows: <html> <head> <meta http-equiv=”Content-Type” content=”text/html; charset=gb2312″> < title > HTML page with horizontal scroll bar</head> <body> <DIV style=” OVERFLOW-X: scroll; scrollbar-face-color:#B3DDF7;scrollbar-shadow-color:#B3DDF7;scrollbar-highlight-color:#B3DDF7;scrollbar-3dlight-color:#EBEBE4;scrollbar-darkshadow-color:#EBEBE4;scrollbar-track-color:#F4F4F0;scrollbar-arrow-color:#000000; width:752px;HEIGHT: 380px” align=center> <table width=”1440″ border=”0″ […]

  • Chrysanthemum printing

    Time:2020-10-30

    Front end to achieve partial printing is to print part of the page information through the printerIt mainly relies on html2canvas, a tripartite tool, and window.print Native APIHtml2canvas: the main function of this tool is to pass in the DOM to get a screenshot of the domwindow.print : call up the printer to print the […]

  • How to register global filter

    Time:2020-10-29

    It’s actually very simple, just register before Vue is instantiated. Vue.filter(‘dateParser’, (value) => { return value; }) Of course, this kind of writing is ugly, so it should be modularized, that is to say, it should be written as follows:filters.js: export function dateParser(value) { return value; } main.js: import * as filters from “./filters” Object.keys(filters).forEach(key => { Vue.filter(key, filters[key]); }); […]

  • Getting to know Ajax

    Time:2020-10-28

    Ajax (asynchronous JavaScript and XML) is a kind of web application technology. It can communicate with the server application asynchronously with the help of client-side script (JavaScript). After obtaining the server-side data, local refresh can be carried out. Then the response and rendering speed of data are improved. The biggest advantage of Ajax technology is […]

  • Introduction of Ajax entry Technology

    Time:2020-10-23

    What is Ajax? Ajax (asynchronous JavaScript and XML) is a kind of web application technology. It can communicate with the server application asynchronously with the help of client-side script (JavaScript). After obtaining the server-side data, local refresh can be carried out. Then the response and rendering speed of data are improved. (asynchronous request, local refresh) […]