WPS guide for browser application integration

Because the WPS plug-in uses NPAPI mechanism to interact with browsers, it is required that browsers using plug-ins must support NPAPI mechanism and enable NPAPI mechanism. The following are common supported browsers and their versions: FireFox browser 52 and versions less than 52 (NPAPI is no longer supported for versions higher than 52) Chr ...

Posted by jme on Thu, 16 Jan 2020 23:02:03 -0800

android native and H5 interaction

Recently, a hybrid APP of Android native H5 was developed on the left. Before that, we haven't summarized the interaction methods between Android native and H5. Here's a summary: 1. hybrid communication is mainly the communication between the front-end JS and our Android. This is the most basic communic ...

Posted by fewtrem on Tue, 14 Jan 2020 20:32:01 -0800

tornado learning notes day06 application security

Application Security cookie Ordinary cookie What do we usually have in our user list When you are shopping, join the shopping cart and let you log in. After you log in, how does he know you are logged in The value of token is random and exists in the cookie Set up Prototype: how to set cookie s ...

Posted by zulfer on Tue, 14 Jan 2020 20:27:59 -0800

The best way to center is on vertical and horizontal pages? [repetition]

The answer is already here: How to center elements horizontally and vertically (19 answers) Closed 11 months ago. What's the best way to center < div > elements vertically and horizontally on a page? I know that margin lef ...

Posted by Kwakhed on Tue, 14 Jan 2020 19:37:17 -0800

Generating a hash from a string in a Java script

I need to convert the string to some form of hash. Is this possible in JavaScript? I don't use the server-side language, so I can't do that. #1 building edit According to my jsperf test, the acceptable answer is actually faster: http ://jsperf.com/hashcodelordvlad original If anyone is interested, this is an improved (faster) ...

Posted by pnj on Sun, 12 Jan 2020 23:54:34 -0800

Process oriented and object-oriented programming ideas

1. Process oriented: all work is written and used now. The way of thinking is analysis and synthesis. The object-oriented way of thinking is construction. 2. Object oriented: it is a kind of programming idea. Many functions have been written in advance. When using it, you only need to pay attention to the use of the function, r ...

Posted by Karamja on Sat, 11 Jan 2020 07:36:19 -0800

Angular2.x/Typescript module introduced parsing

First, modules are introduced in two ways:1. Relative import: import Entry from "./components/Entry"; import { DefaultHeaders } from "../constants/http"; import "/mod"; Relative import resolves relative to the file it was imported into and cannot be resolved to an external module declaration. You should use relative import for your own modules ...

Posted by Crowly on Thu, 09 Jan 2020 11:46:06 -0800

Block level scope in JS, the difference among var, let and const

First, ECMAScript and JavaScript relationships: ECMAScript is an internationally adopted standardized scripting language. JavaScript is composed of ECMAScript, DOM and BOM. It can be simply understood as: ECMAScript is the language specification of JavaScript, and JavaScript is the implementation and extension of ECMAScript. ...

Posted by adeelzia on Thu, 09 Jan 2020 09:40:43 -0800

Jquery form validation plug-in validate

Write before: When doing some adding functions, the form verification before submission is essential. The jquery validate plug-in is OK, which is enough for basic requirements. Record the basic usage here. Let's write a simple demo <html> <head> <meta name="viewport" content="width=device-width" /> <title>Jque ...

Posted by jcd on Thu, 09 Jan 2020 08:01:17 -0800

PHP + infinitscoll to realize infinite scrolling and loading data instance of web page

PHP + infinitscoll implements infinite scrolling of web pages to load data instances. The implementation principle: when the scroll bar is a certain length from the bottom of the web page, send the number of pages to the background and get data. First, we put 10 pieces of data on the page, that is, the first page. Each item is a p tag: 1 <d ...

Posted by sweatje on Thu, 09 Jan 2020 07:14:42 -0800