jQuery source learning note 1

Learning jQuery source code, I mainly learn from miaowi video. Here all the source code analysis, and some of their own understanding of the process of methods and examples collated out for your reference. I use jquery v2.0.3. var rootjQuery, readyList, core_strundefined = typeof undefined, location = window.location, docu ...

Posted by reto on Fri, 13 Dec 2019 12:53:17 -0800

jQuery source learning note 2

//Add instance properties and methods jQuery.fn = jQuery.prototype = { // Version, usage: $(). jquery pop up the version of jquery currently introduced jquery: core_version, // Correction of pointing problem (detailed explanation later) constructor: jQuery, // Initialization and parameter management init: function( sele ...

Posted by ttmt on Fri, 13 Dec 2019 07:07:58 -0800

JavaScript monitors the change of input median in real time

Code Method 1: <!DOCTYPE html> <html> <head> <script src="http://libs.baidu.com/jquery/1.10.2/jquery.min.js"></script> <title>test</title> </head> <body> <input class="et-name" type="input" name="name"> <script type="text/javascript"> $(funct ...

Posted by mickwaffle on Wed, 11 Dec 2019 09:13:52 -0800

AJAX and from upload file example [django project]

Project brief This Django project is a test case project for learning tests. Three ways to upload Django files (form, jQuery+jQuery.ajax, native JS + native ajax) are used as the upload function examples file Interpretation of documents form_upload.html form upload file static page jquery_ajax_upload.html jQuery+jQuery.ajax upload file ...

Posted by matt_wood87 on Tue, 10 Dec 2019 17:10:56 -0800

How to transfer data between "activities" of Android applications?

I have a situation where after I log in through the login page, there will be an exit button on each activity. Click sign out and I will pass the session id of the logged in user to exit. Who can tell me how to make session id available to all activities? Any alternative to this #1 building The most convenient way to pass data betw ...

Posted by Roberto on Tue, 10 Dec 2019 14:36:09 -0800

AMD of JavaScript modular programming

Simply put, AMD is the abbreviation of "Asynchronous Module Definition", which means "Asynchronous Module Definition". It loads the module asynchronously, and the loading of the module does not affect the running of the subsequent statements. All statements that depend on this module are defined in a callback function, which ...

Posted by chaser7016 on Tue, 10 Dec 2019 02:34:53 -0800

Vue tutorial series - basic syntax v1.0

Catalog helloWorld Bidirectional binding css operation Style operation Binding events Binding event - modifier life cycle v-if show and hide (1) v-show show show and hide (2) v-for rendering list (Key) Array update couputed association properties (calculator properties) watch to listen for changes (listen to array and object need ...

Posted by Kiubbo on Mon, 09 Dec 2019 19:03:14 -0800

Try developing an online chat application with workerman

Chat is a common feature, and Workerman is an open source, high performance, asynchronous PHP socket instant messaging framework.   What is Workerman? Workerman is an open source, high performance, asynchronous PHP socket instant messaging framework.Supports high concurrency and stability, and is widely used in mobile app, mobile communication, ...

Posted by pdpullmn612 on Mon, 09 Dec 2019 15:02:51 -0800

Javascript Design Pattern

Design principles (SOLID) Single responsibility model Principle of lie substitution Open and closed principle Interface isolation principle Principle of Dependence Inversion Design pattern Factory mode Encapsulate the new operation separately When encountering new, consider whether to use factory mode Example You go to buy hamburgers, order a ...

Posted by JoelRocks on Mon, 09 Dec 2019 14:44:23 -0800

jQuery for elevator navigation

Functional description: Display elevator navigation when the scrollbar slides to a position; When the user scrolls the scrollbar, keep the selected elevator navigation status consistent with the area that the elevator is currently scrolling to; When the user clicks on the elevator navigation, the scrollbar scrolls to the area corresponding to t ...

Posted by steadyguy on Mon, 09 Dec 2019 05:14:06 -0800