CN108279944A - Mobile purchase system based on plug-in type - Google Patents
Mobile purchase system based on plug-in type Download PDFInfo
- Publication number
- CN108279944A CN108279944A CN201710008450.9A CN201710008450A CN108279944A CN 108279944 A CN108279944 A CN 108279944A CN 201710008450 A CN201710008450 A CN 201710008450A CN 108279944 A CN108279944 A CN 108279944A
- Authority
- CN
- China
- Prior art keywords
- plug
- unit
- jquery
- system based
- type
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Withdrawn
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/958—Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44521—Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
- G06F9/44526—Plug-ins; Add-ons
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q30/00—Commerce
- G06Q30/06—Buying, selling or leasing transactions
- G06Q30/0601—Electronic shopping [e-shopping]
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Accounting & Taxation (AREA)
- General Engineering & Computer Science (AREA)
- Finance (AREA)
- Databases & Information Systems (AREA)
- Data Mining & Analysis (AREA)
- Development Economics (AREA)
- Economics (AREA)
- Marketing (AREA)
- Strategic Management (AREA)
- General Business, Economics & Management (AREA)
- Stored Programmes (AREA)
Abstract
Mobile purchase system based on plug-in type, relate generally to JQuery plug-in type design fields, its content includes, in the networked shopping system based on JQuery plug-in units, main use is increased income or the JQuery plug-in units of independent development, such as using date plug-in unit of increasing income, number format plug-in unit, the table plug-in unit of independent development, link combobox plug-in unit etc..By using these JQuery plug-in units so that UI service codes can make each plug-in unit that different data and pattern be presented under different scenes, greatly improve the reusability and maintainability of code with code dehind, generic configuration is presented.
Description
Technical field
The present invention relates to shopping at network technical fields, more particularly to the mobile purchase system based on plug-in type.
Background technology
JQuery is free, increases income, and uses MIT permission agreements.The grammar design of jQuery can make developer more
It is convenient, such as operate document object, selection DOM element, make animation effect, event handling, use Ajax and other functions.
In addition to this, jQuery offers API allows developer to write plug-in unit, and modular occupation mode allows developer very easily
Develop powerful either statically or dynamically webpage;
JQuery is a kind of new libraries JavaScript.JQuery is a quick and succinct library JavaScript, it makes
The work for obtaining following several respects is simpler:(1)The operation html document of traversal;(2)Event handling;(3)Animation;(4)Quickly
Ajax interoperability in Web exploitations.
Invention content
The insert design of mobile purchase system based on plug-in type, system jQuery is broadly divided into inserting for encapsulated object method
Part, the plug-in unit and selector plug-in unit three types for encapsulating overall situation function.
The plug-in unit of encapsulated object method:This plug-in unit is to be encapsulated object method, for being obtained by selector
JQuery objects operated, be a kind of most common plug-in unit, 95% or more jQuery plug-in units are all encapsulated object methods
Plug-in unit, such plug-in unit can play the powerful advantages of jQuery selectors;
Encapsulate the plug-in unit of overall situation function:Under independent function being added under jQuery NameSpaces, such as solve conflict
JQuery.noConflict () method, common jQuery.ajax () method and the first space of removal
JQuery.trim () method etc. is all that the plug-in unit inside jQuery as overall situation function is attached to kernel up;
Selector plug-in unit,;Under individual cases, it may be desirable to selector plug-in unit is used, although the selector of jQuery is very powerful,
Still it may require that and expand some selectors oneself liked.
Mobile purchase system based on plug-in type, system jQuery, which is created, provides jQuery.fn.extend ()
JQuery.extend () two methods.It is respectively used to expand the plug-in unit of encapsulated object method and expands inserting for encapsulation overall situation function
Part, selector plug-in unit.
JQuery provides two for the methods of expanding jQuery functions, i.e., jQuery.fn.extend () method and
JQuery.extend () method:JQuery.fn.extend () method is used to expand the plug-in unit of encapsulated object method,
JQuery.extend () method is used to expand the plug-in unit and selector plug-in unit of encapsulation overall situation function.The two methods all receive one
" name/value to " of a parameter, type Object, Object object respectively represents " function or method name/function body ", main points
It is as follows:
1)The filename recommendation of jQuery plug-in units is named as jquery. [plug-in unit name] .js, in order to avoid inserted with other libraries javascript
Part is obscured.Such as it is named as jquery.color.js;
2)All object method should be all attached on jQuery.fn objects, and all overall situation functions should be all attached to
With jQuery object sheets;
3)Inside plug-in unit, what this was directed toward is the jQuery objects currently obtained by selector, rather than general method
Such as click () method, like that, what internal this was directed toward is DOM element;
4)All elements can be traversed by this.each;
5)All methods or function plug-in unit, should all be ended up with branch, problem is likely to occur when otherwise compression, in order to more
It is safer, it might even be possible to be preceded by a question mark in insert head;
6)Plug-in unit should return to a jQuery object, with ensure plug-in unit can chained operations, unless plug-in unit need return be
Some need the amount obtained, such as character string or array etc.;
7)The alias for using $ as jQuery objects inside plug-in unit is avoided, and should be indicated using complete jQuery, this
Sample can be to avoid conflict.Certainly, this problem can also be avoided using this skill of closure, make to be continuing with inside plug-in unit
Alias as jQuery.
Mobile purchase system based on plug-in type, system jQuery include the closure design in plug-in unit.
The concept of closure:ECMAsscript has carried out simple description to it, allow using intrinsic function (i.e. function determine
Justice and function expression are located in the function body of another function), and, these intrinsic functions can access where them outside
All local variables stated in portion's function, other intrinsic functions of parameter and statement, when one of them such intrinsic function
When being called except the external function comprising them, closure will be formed, i.e., intrinsic function can after external function return quilt
Execute, and when this intrinsic function executes, it is still necessary to access the local variable of its external function, parameter and other in
The value of portion's function, these local variables, parameter and function declaration (when initial) is value when external function returns, but also can be by
The influence of intrinsic function utilizes the characteristic of closure, you can influences global space to avoid internal temporary variable, and can be in plug-in unit
Content is continuing with alias of the $ as jQuery.
Claims (2)
1. the mobile purchase system based on plug-in type, it is characterised in that:System jQuery, which is created, provides jQuery.fn.extend
() jQuery.extend () two methods are respectively used to expand the plug-in unit of encapsulated object method and expand encapsulation overall situation function
Plug-in unit, selector plug-in unit.
2. the mobile purchase system based on plug-in type, it is characterised in that:The insert design of system jQuery is broadly divided into encapsulation pair
As method plug-in unit, encapsulate overall situation function plug-in unit and selector plug-in unit three types.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710008450.9A CN108279944A (en) | 2017-01-05 | 2017-01-05 | Mobile purchase system based on plug-in type |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710008450.9A CN108279944A (en) | 2017-01-05 | 2017-01-05 | Mobile purchase system based on plug-in type |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108279944A true CN108279944A (en) | 2018-07-13 |
Family
ID=62800667
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710008450.9A Withdrawn CN108279944A (en) | 2017-01-05 | 2017-01-05 | Mobile purchase system based on plug-in type |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108279944A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112559083A (en) * | 2020-12-24 | 2021-03-26 | 成都新希望金融信息有限公司 | Function plug-in execution method and device, electronic equipment and storage medium |
-
2017
- 2017-01-05 CN CN201710008450.9A patent/CN108279944A/en not_active Withdrawn
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112559083A (en) * | 2020-12-24 | 2021-03-26 | 成都新希望金融信息有限公司 | Function plug-in execution method and device, electronic equipment and storage medium |
CN112559083B (en) * | 2020-12-24 | 2023-08-04 | 成都新希望金融信息有限公司 | Function plug-in execution method, device, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108829405A (en) | The generation method and device of channel packet, storage medium, electronic device | |
CN104866512B (en) | Extract the method, apparatus and system of web page contents | |
CN106371825B (en) | A kind of mobile terminal application interface list dynamic creation method and device | |
US8997053B2 (en) | System and method for automated testing of software applications with dynamic user interfaces spanning multiple technologies | |
JPH06502269A (en) | Cross-image reference method for program code | |
CN109145235B (en) | Method and device for analyzing webpage and electronic equipment | |
US8745594B1 (en) | Program flow specification language and system | |
CN116627402B (en) | Method for realizing custom component configuration in low-code platform based on React | |
CN105989068A (en) | Hypertext markup language (HTML) based mobile application generating method and device | |
CN116974620A (en) | Application program generation method, operation method and corresponding device | |
CN108279944A (en) | Mobile purchase system based on plug-in type | |
CN114297549A (en) | Component processing method and device | |
CN113900647A (en) | Method, device and equipment for screenshot of webpage | |
KR101624387B1 (en) | Method for software asset management based on software birthmark and apparatus thereof | |
JP4836412B2 (en) | Method and apparatus for generating a graphical user interface | |
CN112486378B (en) | Graph generation method, device, terminal and storage medium | |
CN109213502B (en) | Application updating method and device | |
Van Hattem | Mastering Python | |
CN109871207A (en) | A kind of framework extension device and method | |
CN113934405A (en) | Plug-in processing method, device, equipment, storage medium and computer program product | |
CN108369499A (en) | Compiler automatic code virtualizes | |
CN105183491A (en) | Cross-platform desktop GIS and starting method thereof | |
CN114579137B (en) | Page rendering method and device, computer equipment and storage medium | |
CN104239064A (en) | Method for extracting and organizing ARM (advanced RISC machine) program relocation information | |
CN103413069B (en) | A kind of method of the software protecting object oriented language to write |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WW01 | Invention patent application withdrawn after publication | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20180713 |