It mainly integrates common extensions, including Dom and String, Array, StringBuffer, and NameSpace. Of course Ajax is indispensable. The size is about 8 KB. Because the volume is strictly controlled, the function is limited. If you only need the Ajax part, it will be 1 K.
This small framework has been applied to the company's projects and began to gradually replace prototype. js on the front-end display
What does a JS framework need to do? (1)
Why? I wonder if you have found that although the front-end is developing fast, some well-known frameworks will be hot for at least a long time, such as Backbone, React, and Ember. If you want to learn it, you must have enough time to learn it. After all, the facts are in front of us. Many companies' online products are written using React, such as Teambition's shor
Swipe. js 2.0 Lightweight Framework for mobile web sliding left and right, swipe. jsmobile
Property summary notes are as follows:
Then we found a perfect lightweight alternative, swipe. js 2. 0. Details are as follows:
// Introduce the css styleClass = "swipe-wrap">// // Javascript: indicates that a piece of JavaScript code is executed when the //
Two reference
Today, I have nothing to do in the company. I suddenly thought of writing the front-end framework of the shopping cart of the mall. Of course, I only have to add, delete, modify, and query the shopping cart here. Maybe it is not so complete, but the most important thing is getting started. I also hope the js talents can give me some suggestions so that I can take a step further.
HOHO ~~~ Start:
is a love English comment ~ Although it is fun ~ However, this also gives me a way to give advice to Chicory! (I found an obvious word error, and I have already reported it.) the depth of this analysis is definitely not enough, because we are a beginner in js. So I hope you will tell me what is wrong! If chicory passes by to raise some comments, it would be better. I also hope that my blog can help students who want to read the
directly call in the corresponding method: This.http.post ();One suggestion, however, is to try to unify the scope of the callback method to the controller so that the development does not always have a scope problem.1 $.controller.extend ({2 utils:utils,3 notify: $.notify, 4 modal: $.modal,5 http: $.http,6 alert: $. Alert7 7. Principle and Code analysis (to be continued ...) )The entire JS
In order to make our frame form more attractive, we need to add bootstrap and JQ files to the framework1, through the bootstrap and JQ official website for the download of relevant documents(1) bootstrap:https://v3.bootcss.com/getting-started/#download(2) jq:http://jquery.com/2. Put the jq file after download into the bootstrap/js folder3. Copy the JS, CSS, and font folders in bootstrap to the public/static
Ampersand.js is a highly modular, loosely coupled framework for building advanced JavaScript applications. A well-defined method combines a series of tiny CommonJS modules. Clear, no redundant code. Related articles that may be of interest to you
Web development in a very practical 10 effects "with Source download"
Carefully selected excellent jquery Ajax page plug-ins and tutorials
12 Classic white-rich jQuery images Carousel Plugin
Le
Many Web pages are frame-structured, and in many cases, clicking events or links through a button, and jumping out of the frame to other interfaces. below for you to introduce the next JS jump page frameset FrameMany Web pages are frame-structured, and in many cases, clicking events or links through a button, and jumping out of the frame to other interfaces. For example, click "Logout Login" to return to the login interface. One, through running the
($ ("#AccountName"). Val ()); Coded data }}}, Messagescallback:func tion (Messages) {messages. Name.remote = ' The company has been registered! ‘; Messages. Accountname.remote = ' The user name already exists! ‘; Messages. Confirmparssword.equalto = ' two times password inconsistent '; }, Filters: [' Cellphone ', ' Email '}, Post: { Succes
This article mainly introduces Backbone. the Router routing function in the js framework is equivalent to the Controller function in the MVC Framework in Backbone. If you need a Router, you can refer to the Router function in Backbone to act as a route and control the URL direction, it takes effect when # label is used in the URL.
Defining a Router requires at le
CMDFirst enter SERVERCD server//and then under node run the Bin folder under the WWW file node bin/wwwOpen the browser, enter localhost:3000, see, it means that the express service started successfully.4) Replace the Jade engine with HTMLNote that under the View folder, there are three. Jade type files, express using the Jade engine by default (or recommend that you use Jade,jade syntax or very simple and efficient), we do not use the Jade template language, can be changed to HTML, the followin
[JS] implement dynamic adding framework! Incomplete
[Ctrl + A select all Note: If you need to introduce external Js, You need to refresh it to execute]
The OpenLayers development team was proud to announce the release of OpenLayers October 8 on June 14, 2.7. As the final version, OpenLayers 2.7 covers 201 notable features.
OpenLayers. js is now using the 2.7API.
Source code unchanged: http://openlayers.org/download/
The main features of the new version include:• Vector-Behavior: Policy, protocol, and filter• Improved High-Performance Vector Monetization• Canvas representations• Z-axis sorting and
given request, ithe middleware would not run. The function'll has access to Koa ' s context viathis
useOriginalUrlIt should are true or false , default is true . If False, would path match against ctx.url instead of ctx.originalUrl .
ExamplesRequire authentication for every request skip the path is index.html.App.Use(Requiresauth(). Skip ( {path:[/index.html ' , / ' ] }) ) Avoid a fstat for request to routes doesnt end with a given extension.app. Use(static. Skip(function () {
After the Framework library is complete, open source will be considered.
1. In the dialog box, I copied the CSS of ext completely. Unfortunately, I found that the CSS of ext is too disgusting and I have time to change it ., After imitating Ext, I found that ext's CSS is too Bt. Now, I will change CSS later.
2. Grid, similar to the CSS of a comrade in the garden, is now ready to be completely modified. It is more gorgeous like jquery's grid. Curr
The example explains the View in the Backbone. js framework of JavaScript, including javascriptbackbone.
The View in Backbone is used to reflect the Model in your app. They listen to events and respond accordingly.In the next tutorial, I will not tell you how to bind the Model and Collection to the View, but mainly discuss how the View uses the javascript template library, especially Underscore. js's _. tem
Use the jquery-validationEngine framework to implement front-end JS verification in four steps.Step 2:Introduce CSS and JS Step 2:Define formForm has at least two attributes: id and class.The input box contains the validate validation style.Step 2:After the page is loaded, start the configuration.$ (Function () {// verify $ (". validationEngine "). each (functio
, fires when the nodes is moved programmatically
OnEdit
4 different editing stages triggered: Before you start editing (can be canceled), after you start editing, finish editing (can be canceled), finish editing
Oneditcancel
Trigger after canceling edit
OnKeyPress
Trigger after keyboard key
Onmousein
Mouse Up Trigger
onmouseout
The mouse leaves the area of the item to trigger
Onopendynami
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.