nodejs service, web pack packaged koa service
Preface
At present, the iteration of front-end update is faster and faster, and the corresponding supporting services are also developing rapidly. node service koa uses web pack packaging scheme.
install
npm install
npm run build
New project package.json
{
"name": "koa2-blog",
"version": "1.0.0",
"description": "blog",
"main": "main.js" ...
Posted by kavitam on Sat, 05 Oct 2019 01:52:50 -0700
The front end uploads resources to Qiniuyun according to Qiniutoken
Demand:
The project involves uploading pictures or videos to Qiniuyun. If you submit binary data to the backstage for uploading, the experiment experience is not very good, the file is small or good, and the whole process of a large file will be very slow. So you need to upload the front-end directly to Qiniu, and then submit the resource key ...
Posted by PoohStix on Thu, 03 Oct 2019 15:50:24 -0700
Use jquery-intro plug-in for page boot
I. Introduction
Official download: https://introjs.com/example/hello-world/index.html
Basic configuration
Setting parameters: Setting multiple formats json format: key:value can set parameters
nextLabel: "Next →",
prevLabel: "← Back",
skipLabel: "Skip",
doneLabel: "Done",
tooltipPosition: "bottom",
tooltipClass: "",
hi ...
Posted by melody on Thu, 03 Oct 2019 15:10:03 -0700
Realization of Rongyun Live Chat Room (vue)
Recently, the company asked to do live video broadcasting function with chat room to record today First introduce the required Js Cloud Melting Technical Documentation https://www.rongcloud.cn/docs...
<script src="https://cdn.bootcss.com/jquery/3.4.1/jquery.min.js"></script>
<script src="https://sdk-release.qnsdk.com/qiniu-web- ...
Posted by bearqst on Wed, 02 Oct 2019 08:05:49 -0700
A simple small project blog Garden bbs home page building, using admin background management input data
Catalog:
bbs homepage construction
Using admin background management to input data
bbs homepage construction
First add the home url
# Add in urls.py
url(r'^home/', views.home),
bootstrap components used in front-end pages
https://v3.bootcss.com/components/#navbar
https://v3.bootcss.com/com ...
Posted by mlnsharma on Tue, 01 Oct 2019 21:52:36 -0700
Flask Building Application and Realizing Front-end and Back-end Practice
Article directory
web application architecture
Front-end building
web application architecture
Create an application instance by calling flask
Flask extension Bootstrap is usually initialized when creating program instances
from flask import Flask,render_template,request,json,jsonify
from flas ...
Posted by SQL Maestro on Tue, 01 Oct 2019 19:11:06 -0700
jQuery source code analysis of each function $. each and $. fn.each method in detail
An $. each is generally used to traverse an array or object, $. fn.each() is the operation that a jQuery instance can perform (because $. FN is the prototype of a jQuery object)
each is used to traverse an array or object, perform drop-back functions in turn, and finally return the passed array or object to support the chain operation. Three pa ...
Posted by toms on Tue, 01 Oct 2019 07:22:43 -0700
Detailed configuration of JQuery datatables and aoColumns parameters
JQuery datatables api
$(function(){
var docrTable = $('#aaa').dataTable({
"destroy":true, //No error will be reported.
"bProcessing" : true, //Whether the'progress'prompt is displayed when the Data Tables load the data
"bServerSide" : true, //Whether to start server-sid ...
Posted by Bit343 on Mon, 30 Sep 2019 12:38:30 -0700
Flask Station Notes - Using jinjia Template
The jinjia syntax is similar to jsp in Java Web. It can interact directly with the background in html with specific grammar rules and implement some simple logical operations.
Background function
@blog.route("/blog")
def blog():
data = [...]
return render_templates("index.html", data=data)
...
Posted by cdhogan on Mon, 30 Sep 2019 11:20:17 -0700
Climbing Time of 001PyQuery Library
Project requirements:
Because of the statistical analysis of mathematical modeling competition data, it is necessary to get the actual departure and landing time of all flights in an airport one day.
Code analysis:
Take the airport as an example, the time to arrive at the airport is the same.
...
Posted by fmpros on Mon, 30 Sep 2019 10:44:26 -0700