Front-end Daily Actual Warfare: 161

Effect Preview Press the "click preview" button on the right to preview the current page, and click the link to preview the whole screen. https://codepen.io/comehope/pen/WaaBNV Interactive Video This video is interactive, you can pause the video at any time, edit the code in the video. Please open it with chrome, safari, edge. https: ...

Posted by Atanu on Fri, 25 Jan 2019 06:27:14 -0800

gulp-based front-end automation scheme

Preface In recent years, front-end technology has developed rapidly, especially the popularization of single-page applications. Componentization, engineering and automation have become the trend of front-end development. webpack has become the mainstream of front-end packaging construction, but some antique projects still exist, there is also t ...

Posted by Biocide on Fri, 25 Jan 2019 06:24:14 -0800

React error "Cannot read property'setState'of undefined"

App.js import React, { Component } from 'react'; import './App.css'; class App extends Component {     constructor(props){         super(props);         this.state = {             num: 90         }              };     handleClick(){         this.setState({             num: this.state.num + 1         })     };   render() {     return (     ...

Posted by greekuser on Fri, 25 Jan 2019 04:57:14 -0800

javah generates header files

Write native methods, such as: package com.example.renzhenming.appmarket.ui.selectimage; import android.graphics.Bitmap; public class ImageUtil { static { System.loadLibrary("jpeg"); System.loadLibrary("compressimg"); } /** * Picture compression * @param quality Quality of Compression ...

Posted by Cramblit on Thu, 24 Jan 2019 16:45:14 -0800

JqueryUI Starter Example

Jquery ui is a good front-end UI framework. Official address: https://jqueryui.com/ Download jQuery UI at https://jquery ui.com/resources/download/jquery-ui-1.12.1.zip Downloaded is a compressed package, decompressed directory structure is roughly as follows: Initial examples: (It's also a good learning to look at the index.htm ...

Posted by activomate on Thu, 24 Jan 2019 14:00:13 -0800

Java Goods Shopping Course Lecture _day17(5)

Page Settlement - Payment Choice3.1 Demand AnalysisTo realize the choice of payment mode, there are two payment modes: Wechat payment and cash on delivery payment. 3.2 Choice of Payment Method3.2.1 Front-end Control Layer cartController.js $scope.order={paymentType:'1'}; //Choose payment method $scope.selectPayType=function(type){ $scope.o ...

Posted by TheBurtle on Thu, 24 Jan 2019 03:27:15 -0800

Use Per.js to quickly develop product price calculation Pages - for Per.js3.0

Preview all the code first: <!DOCTYPE html> <html>     <head>         <title>Per.js Demo</title>         <meta charset="UTF-8">     </head>     <body id="body">         <div id="page1">             <h1>Welcome to use this price calculation!</h1>         </div>   ...

Posted by Timewell on Wed, 23 Jan 2019 02:48:13 -0800

Golang uses WebSocket to communicate

To create WebSocket communication with Golang, you only need to use the golang.org/x/net/websocket package, which may be walled and cannot be downloaded using go get, but we can provide it from Goang China. address Download and put the package in the corresponding path. WebSocket is a communication protocol, aiming at improvin ...

Posted by wendu on Mon, 21 Jan 2019 12:18:15 -0800

JQuery Ajax Implements Select Multilevel Associated Dynamic Binding Data

Here are some ideas about the use of JQuery plug-ins to share with you, hoping to help you. jQuery chooses plug-ins to be divided into basic version and beautification version, with emphasis on beautification version, as shown in the following figure: Compared with the original version, the beautified selection plug-in can be said to be ver ...

Posted by Floydian on Sat, 19 Jan 2019 15:15:14 -0800

Spring-Security Privilege Management Framework (1) - Log on Based on Role Privileges

Summary of Spring-Security Framework LearningPrerequisite: Before presenting, let's create a project and import it into IDETest whether the project is running successfully and start learning formally after successCase1: As long as you can log inObjectives: In our access project, we access index directly, without interception, access to other p ...

Posted by SQHell on Sat, 19 Jan 2019 12:30:12 -0800