Simple configuration and database connection of NodeJS build project

Simple configuration and database connection of NodeJS build project The main contents are as follows: Load exprss module Create app app Load template processing Set up static file hosting Load database module Blog offline Processing post requests Cookie settings Load exprss module var express = require('express ...

Posted by keevitaja on Tue, 31 Mar 2020 06:57:39 -0700

Publish a npm package of your own in one minute

How to publish an npm package 1. Register npm account Landing https://www.npmjs.com Use email to register, receive and verify email(here are two emails: Welcome to npm and Verify your npm email address) 2. Select the target folder and cd in the command line E:\xxx>cd test E:\xxx\test> 3. Execute npm init Enter th ...

Posted by GamingWarrior on Tue, 31 Mar 2020 04:08:50 -0700

Python 3 Django (7) Django has many ways to transfer data from the background to the front.

Django has many ways to transfer data from the background to the front. Basic form: from django.shortcuts import render def main_page(request): return render(request, 'index.html') views to HTML usage data views is passed to HTML to use data Code in views: from django.shortcuts import render def main_page(req ...

Posted by Paragon on Tue, 31 Mar 2020 01:16:00 -0700

Native js implements Ajax requests, including get and post

Now the web requests data from the server, many of which use Ajax, but they are all wrapped with JQuery. In the previous project, because JQuery cannot be referenced, it can only be used in the native, not to speak much, please see the code. 1 /*-------------------Ajax start--------------------*/ 2 3 function ajax(options) { 4 options ...

Posted by bernouli on Tue, 31 Mar 2020 01:09:43 -0700

js reads the Excel table, js finishes clicking to copy the data

Crap Project requirements: read a block of excel according to the date; generate an array; click to copy the array for other purposes; Read different sheet s according to the week (lower left corner of Excel) Read Monday's title and Tuesday's title, in turn.. The Excel content area is as follows: Final effect example: U ...

Posted by skripty on Tue, 31 Mar 2020 00:00:38 -0700

Springboot returns json or xml or html according to the url suffix

Springboot is based on the url suffix Return json or xml; Returns html based on the suffix name. Author: liuren Copyright notice: This is an original article, following CC 4.0 BY-SA copyright agreement. Please attach the original source link and this notice for reprint. Initializing the Springboot project 1, pom.xml package introduced first ...

Posted by srdva59 on Mon, 30 Mar 2020 09:33:51 -0700

Python crawler crawls data from mobile APP

1. Grab APP data package Please refer to this blog post for detailed methods: http://my.oschina.net/jhao104/blog/605963 Get the login address of the super curriculum: http://120.55.151.61/V2/StudentSkip/loginCheckV4.action Form: The form includes the user name and password. Of course, they are all encrypted. There is also a de ...

Posted by brown2005 on Mon, 30 Mar 2020 07:23:31 -0700

Polar rabbit express bill No. query - polar rabbit Express

Preface After reading this article, copy the source code to your project, and you can quickly complete the docking of polar rabbit express interface. The effect of the interface displayed on the official website of polar rabbit express is more suitable for novices, Call the polar rabbit Express query API interface of the express bird to query ...

Posted by dk4210 on Mon, 30 Mar 2020 00:16:37 -0700

Vue - - Nuxt.js for the whole family

1. Directory structure   2. Aliases On the vue page of nuxt.js, you can use ~or ~~ if you need to import resources from a directory such as assets or static.   3. Routing Nuxt.js automatically generates the routing configuration for the vue-router module based on the pages directory structure. To use routing between pages, we recomm ...

Posted by nemesis.2002 on Sun, 29 Mar 2020 19:53:29 -0700

Remember to parse the string once: find the starting position of the specified N strings in the target string

In our project, there is a scenario: a drop-down selection box, which supports user input and displays the final result in the text box (that is, ordinary string, and the user's selection in the drop-down box is in []) I don't know if I can imagine that when I write a note, it's a little close to the function of choosing "tag tag" in ...

Posted by bidnshop on Sat, 28 Mar 2020 04:15:35 -0700