Asp.Net Core 3.0 learning 3, Web Api file upload Ajax request and cross domain issues

1. Create Api project I use Vs2019 core 3.1. Open Vs2019, create Asp.Net Core Web application, name CoreWebApi, create selection api, add an api Controller FileUp under the Controller folder, modify the route of api [Route("api/[controller]/[action]]] so that you can access a specific test api using System; using System.Collections. ...

Posted on Thu, 23 Apr 2020 22:28:40 -0700 by jeffkee

Some optimizations for nginx

1. Compile and Install Optimizations 1. Cancel debug mode: When compiling Nginx, it defaults to debug mode, which inserts a lot of information such as tracing and ASSEERT. After compilation, a Nginx has several megabytes.Remove debug mode from Nginx before compilation. Nginx only has a few hundred kilobytes after compilation, so you can modify ...

Posted on Thu, 23 Apr 2020 10:01:20 -0700 by RyanSF07

Using WeChat official account to display and pay for goods

Write at the front< Using WeChat official account to display and pay for goods (1) >This paper introduces the processing of the list and details of the goods. Next to the previous article, this article continues to introduce the wechat payment and shopping cart processing of the goods. In wechat payment, it also involves the processing of ...

Posted on Wed, 22 Apr 2020 05:02:36 -0700 by rohithmr

Vue.js calculation properties + listening properties

Vue.js calculation properties Calculation attribute keyword: calculated. Computational properties are useful when dealing with complex logic. You can see the following example of reversing a string: <template> <div id="app"> <p>{{info}}</p> <p>{{reverse}}</p> </div> </template> < ...

Posted on Mon, 20 Apr 2020 02:20:25 -0700 by ShootingBlanks

p5.js Complete Intergalactic Traverse Effect

Star crossing imitates the feeling of stars flying across the sky. The most critical is the mastery of perspective. Reference: The Coding Train 00 Ideas A star is a circle that appears randomly anywhere on the screen. Stars travel from far to near: the size of a circle indicates distance; The trajectory of a star: The rays connecting the st ...

Posted on Fri, 17 Apr 2020 10:46:24 -0700 by tkmk

Bottom player plug-in

Wrote a player to practice position: relative; when an element is moved, it will cause occupation The solution is father  position: relative;   childs   position: absolute; It was originally intended to make the bottom mouse automatically hide after 2 seconds, and the mouse suspension player automatically expand Event triggered with onmo ...

Posted on Wed, 15 Apr 2020 09:51:38 -0700 by pherrick

The growth path of Lenhart - Vue Ajax

Lenhart's growth path -- Vue Ajax 1. Solution of callback function promise class Before I talk about ajax, let me start with the callback function. The so-called callback function is to import the subsequent processing logic into the current thing to do. After doing the job, call this function and implement an examp ...

Posted on Tue, 14 Apr 2020 08:11:19 -0700 by dyluck

A good helper of React -- the use of Ant Design component library

    First, install         Introducing styles in index.js   Follow the official website component         import React,{Component} from 'react'; import { Button } from 'antd'; class Counter extends Component{ render(){ console.log('render'); return( <div> <Button type="primary"> ...

Posted on Tue, 14 Apr 2020 08:10:35 -0700 by pskZero7

React add event

React adds events, similar to DOM, but slightly different For React to add an event, please note: 1. The event of react is named by camel case, and DOM is named by pure lowercase; 2. When using JSX syntax, you need to pass in a function as the event processing function, and DOM passes in a string (although the event name passed in DOM can also ...

Posted on Tue, 14 Apr 2020 03:45:37 -0700 by genista

React JSX simple case demonstration

Because JSX is JavaScript, some identifiers like class and for are not recommended as XML attribute names.Instead, React DOM uses className and htmlFor as the corresponding attributes.   To render the React elements to the root DOM node, we render them to the page by passing them all to the ReactDOM.render() methodIf you need to nest multiple H ...

Posted on Mon, 13 Apr 2020 07:25:02 -0700 by zypher11