Demonstration and comparison of JQuery filter selector and property modification

Text matching Enter the value in the form input item, click the judgment button according to the input value, and make the corresponding check box selected   <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Insert title here</title> <script type="text/javascript" src="js/ ...

Posted on Thu, 02 Apr 2020 16:17:08 -0700 by Seas.Comander

Function attempt of Knockout component

Components need to be reused to make sense, so component HTML templates should be independent of external files. The following are component HTML templates <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> </head> <body> <div id="template" da ...

Posted on Thu, 02 Apr 2020 14:38:10 -0700 by bran

The front end realizes search history and clear history (angularjs+ionic)

Page effect to achieve:   1. Display historical search, 2. The most recent search is at the top, 2. Display up to 8 history 4. Clear history Train of thought: 1. To display the history first, an array searchItems is required, and each of them is displayed through ng repeat <label class="item item-input input-search"> <input n ...

Posted on Thu, 02 Apr 2020 13:59:52 -0700 by mgmoses

Compare whether two arrays and objects are the same

JavaScript cannot directly compare the equality of two arrays with the = = or = = = operators alert([]==[]); // false alert([]===[]); // false Because Array is an object in JavaScript, the = = or = = = operators can only compare whether two objects are the same instance, that is, whether they are the same object refere ...

Posted on Thu, 02 Apr 2020 11:25:55 -0700 by cyclops

Angular cli 1.6.7 building applications some configuration of webback

Building application of angular cli 1.6.7 Some configuration of webpack Label: Angular The project initialized with ng new my app does not contain the webpack configuration file. You need the ng eject command to add the webpack.config.js configuration file. At this time, the file has a more complete configuration. But there is a lack of other ...

Posted on Wed, 01 Apr 2020 23:50:48 -0700 by mj_23

JavaScript object oriented and prototype

JavaScript object oriented and prototype I. Preface ECMAScript has two development modes: 1. Functional (programming), 2. Object oriented (OOP). Object oriented language has a sign, that is, the concept of class, through which any number of objects with the same properties and methods can be created. However, ECMAScript does ...

Posted on Wed, 01 Apr 2020 21:07:50 -0700 by lizard

Django REST framework+Vue to create fresh supermarket (3)

xadmin background management 3.6.xadmin add rich text plug-in (1) New file ueeditor.py under xadmin/plugins folder The code is as follows: # xadmin/plugins/ueditor.py import xadmin from xadmin.views import BaseAdminPlugin, CreateAdminView, ModelFormAdminView, UpdateAdminView from DjangoUeditor.models import UEditorField from DjangoU ...

Posted on Wed, 01 Apr 2020 19:20:09 -0700 by loony383

Using pagination of Jquery front-end paging plug-in

Plug in Description: jquery paging is a lightweight plug-in for jquery paging. Only a few simple configurations are required to generate paging controls. And support ajax to get data, custom request parameters, provide a variety of methods, events and callback functions, full-featured paging plug-in. Case pictures jQuery Pagi ...

Posted on Wed, 01 Apr 2020 14:11:03 -0700 by GetPutDelete

vue little white quick start

1, What is vue Vue is a progressive framework for building user interfaces. Only 17kb after compression   2, Building vue environment You download it directly and import it with the < script > tag, and Vue will be registered as a global variable. However, NPM installation is recommended when building large applications with Vue. It's reco ...

Posted on Wed, 01 Apr 2020 12:54:05 -0700 by pdkv2

webpack configuration (step 4: html (Advanced))

If you need to read (basic chapter), please move to: https://my.oschina.net/u/3797834/blog/1649157 webpack.config.js file const path = require('path'); let htmlwebpackplugin = require('html-webpack-plugin');//Introducing HTML webback plugin plug-in let export_html= { entry: { main:__dirname+"/app/js/main.js",//Entrance file m ...

Posted on Wed, 01 Apr 2020 04:32:02 -0700 by gfoot