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
SpringMVC framework uses window. location. href in js to request url. The IE incompatibility problem is solved.
When using the springMVC framework, you sometimes need to use window. location. href in js to request a url, such as the following path:
Window. location. href = 'forecast/download. do'
In Google's browser
This article mainly introduces the example of JavaScript Backbone. view view in the js framework. In the browser-side js framework backbone, we use View to bind and handle DOM events, you can refer to the View in Backbone to reflect the Model in your app. They listen to events and respond accordingly.
In the next tutor
Excellent js Open-source framework-jQuery User Manual (1) jQuery is an excellent js development library class like prototype, especially its support for css and XPath makes it easier for us to write JavaScript! If you are not a js guru and want to write excellent js effects,
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
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
0 reply content: one by one
Front end:
Css:
There is a big pitfall on how to organize the css structure. But there are already some specifications, the most famous oocss Home · stubbornella/oocss Wiki · GitHub
The reuse of css mainly relies on componentization to componentialize common things, such as Button and Dropdown. In the future, add the class.
The Bootstrap structure is quite good. Learn LESS (very simple, one day), read the source code, and customize the UI library. (It is mainly
, 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
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.