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
This article mainly introduces how to load different web pages in the framework of JS after clicking a button. it involves the javascript button loading method and has some reference value, for more information about how to load different web pages in the framework after clicking the JS button, see the example in this
When using the SPRINGMVC framework, it is sometimes necessary to use window.location.href in JS to request a URL, such as the following path:window.location.href = ' forecast/download.do 'In Google Chrome, the actual request path is: Project name/forecast/download.doWhen accessed under IE, there are several layers of folders in the middle:This is caused by various browsers handling different methods when us
This article mainly introduces the thinkphp framework can add JS event paging class customPage.class.php, in full instance form to give the pagination class customPage.class.php implementation code and analysis of AJAX dynamic loading data, Set paging links and other functions, the need for friends can refer to the following
This article describes the thinkphp framewor
, here specifically to deal with the page dynamic information tips.3,JS defines language variables, full-text replacements, such as: var dbi = Document.body.innerHTML; var Tolan = eval (LAN); for (var n=0;n) { dbi= dbi.replace (eval ("/" +cn[n]+ "/g"), Tolan[n]); } = DBI;This method is not recommended, processing performance is low, if the page has event binding and other content, but also cause a lot of problems.4, using
. Descendant selector form input contains the grandchild element5, sub-selector form>input6, brother selector Label+input can get the input label behind the label1, even even odd radix 2, GT greater than LT is less thanjquery AjaxConcept: JQuery underlying AJAX implementation. Easy to use high-level implementation see $.get, $.post and so on. $.ajax () returns the XMLHttpRequest object that it created. In most cases you do not need to manipulate the function directly unless you need to manipulat
-------------------> API logic Processing layer, generally is the curd of data and other operationsControllers--------> C End Site, nothing to sayJobs-----------------> Timed tasks, combined with Node-scheduleLogs-----------------> file logModels------------> Mongoose Database links and individual entity definitionsProxy--------------> Database access method encapsulation, such as INSERT, updateUtil------------------> Tools JS package, such as DateFor
Vue.js reference: Http://cn.vuejs.org/guide/installation.html Regardless of the framework used, the first is to create an instance of it: var vue = New Vue ({//Parameters })Summary of Knowledge Points: 1. Binding: Using the Double "mustache" syntax, such as: {{}} Extended knowledge: Using three mustache, you can output HTML, such as: {{}}}Mustache tags can also be used in HTML features (Attributes): Div id="item-{{ID}" > div> 2. Two-way binding: As
This article mainly introduces the Model and its collection in the Backbone. js framework. Backbone has a Model and View structure similar to the traditional MVC Framework. For more information, see
What is Model?The author of Backbone defines the Model as follows:
Model is the core of any web application. It contains interactive data and most of the logic. For
The thinkPHP framework can be used to add the pagination class customPage. class. php complete instance for js events, and thinkphppage pagination
This example describes the paging class customPage. class. php that can be added to the thinkPHP framework. We will share this with you for your reference. The details are as follows:
The paging class used for ajax to
Angular. js is a front-end development framework designed and developed by google developers, helping you simplify the burden of front-end development. To what extent can it be simplified? Today, let's take a look at a line of code to implement the control Verification effect. How scared is there?
As shown in, we need to implement the following verification functions:
All controls are mandatory controls.Th
[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]
Ten-minute learning to use the js framework component ---- ymPrompt message prompt component
This component includes various messaging components that we often use.
For example:
YmPrompt. alert (parameter) // Message Type
YmPrompt. succeedInfo (parameter) // successful information type
YmPrompt. errorInfo (parameter) // error message type
YmPrompt. confirmInfo (parameter) // you can specify the message type
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.