![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
JavaScript_CSS
文章平均质量分 73
wonderfan
云计算,电商和移动互联网
展开
-
Automatic Scripts
Sometimes, we need to create and run some scripts to do some common tasks automatically. There are some options in our pockets on the basis of scripts.1. Use Shell scripts:The shell scripts can ge原创 2012-11-27 10:49:58 · 325 阅读 · 0 评论 -
JavaScript – Lazy Loading Using RequireJS
A web application, however easy or complex it is, consists of a handful of HTML, JavaScript and CSS files. Most of the times application developers use third party JavaScript libraries like jQuery, Kn原创 2013-06-07 21:07:14 · 810 阅读 · 0 评论 -
JavaScript Common Pattern
Anonymous ClosuresThis is the fundamental construct that makes it all possible, and really is the single best feature of JavaScript. We’ll simply create an anonymous function, and execute it immed原创 2013-06-18 21:01:46 · 626 阅读 · 0 评论 -
Design cross devices web sites
The devices are still on the rise and our web sites have to be compatibel with all of devices like desktop, mobile, ipad ,pda and etc. I will make some summary of hints and tips used by some popular s原创 2013-07-07 10:52:51 · 1248 阅读 · 0 评论 -
RESTFUL Service : based on Jersey
REST, Representational State Transfer, is a powerful, lightweight architecture that allows you to work with data in a comprehensive manner via HTTP. Yet, as powerful as REST is, getting it to work with Spring.原创 2013-08-19 09:36:23 · 699 阅读 · 0 评论 -
An Introduction to Handlebars
Handlebars is one of powerful javascript template engine which can help combine the template and data to html display.The basic work it does are very easy to understand as below:1. Use custom html t原创 2013-11-17 08:50:46 · 538 阅读 · 0 评论 -
How to use $http and $resource in Angular JS
This post tells you how to use $http and $resource service in AngularJS原创 2013-12-29 11:36:58 · 1314 阅读 · 0 评论 -
[Mootools] Simple tutorial of how to use domReady, DOM operation and Ajax in Mootools
How to use mootools test the event click me var obj = "this is my message"; window.addEvent('domready',function(){ new Request.HTML({url:'index.html',method:'get',update:'c原创 2014-01-01 21:41:17 · 628 阅读 · 0 评论 -
[Angular] Get started with data binding and SPA
This is my angular App Name: Hello {{yourName}} params = {{$location.path}}原创 2014-01-01 21:43:54 · 935 阅读 · 0 评论 -
[Bootstrap] How to use bootstrap in your application?
Hello, world! this is my first part This is my second part This is my third part Your Address: Submit原创 2014-01-06 22:51:16 · 636 阅读 · 0 评论 -
Google Adsense
<ins class="adsbygoogle" style="display:inline-block;width:320px;height:140px" data-ad-client="ca-pub-3152670624293746" data-ad-slot="9382711804">(adsbygoogle = window.adsbygoogle ||原创 2014-01-14 20:50:23 · 700 阅读 · 0 评论 -
[AngularJS] How to create Directives?
Directives are the reusable UI components in AngularJS. In this blog, i will show you how to create custom directives in AngularJS.原创 2014-01-19 09:11:47 · 895 阅读 · 0 评论 -
[JavaScript]How to parse the URL and get the different fragments easily?
In this tutorial, i will show you how to get the href, protocol,host, host name,port and path information from URL with the help of JS.原创 2014-01-19 08:19:21 · 1592 阅读 · 0 评论 -
[JS] Use repeat and list directives in AngularJS
This code snippets show how to use directives in AngularJS?原创 2014-02-28 11:55:13 · 891 阅读 · 0 评论 -
[JavaScript] Use template engine in Dojo
This is a trial to embed the underscore template utility into Dojo toolkit.define("myjs/Header",["dojo/_base/declare","dijit/_WidgetBase","dojo/text!./templates/header.html"],function(declare, _原创 2014-03-27 18:51:21 · 999 阅读 · 0 评论 -
[JavaScript] How to use HightLight in Dojo?
The HightLight can help make the code blocks in the HTML more beautifully. This recipe tells you how to use this cool feature in the Dojo toolkit. The basic idea is to replace your previous code statements and format them by the style sheet.原创 2014-04-06 16:27:16 · 790 阅读 · 0 评论 -
[Backbone]Make Backbone Better With Extensions
Make Backbone Better With Extensions原创 2014-08-17 07:44:27 · 854 阅读 · 0 评论 -
JavaScript Templating
Using templates in the browser is becoming more and more widespread. Moving application logic from the server to the client, and the increasing usage of MVC-like patterns (model–view–controller) inspi原创 2013-06-03 11:52:16 · 603 阅读 · 0 评论 -
Explain Backbone
1.What is the Backbone?Backbone supplies structure to JavaScript-heavy applications by providing models with key-value binding and custom events, collections with a rich API of enumerable functions,原创 2013-06-01 18:06:32 · 546 阅读 · 0 评论 -
Responsive Design with Twitter Bootstrap
Responsive DesignResponsive design is fundamentally the concept of changing the way your application looks and behaves as the screen size gets smaller. This is done using CSS3 media queries.原创 2013-04-25 22:12:55 · 759 阅读 · 0 评论 -
Use Dojo in the ZF
1.Enable the view to use Dojopublic function init() { Zend_Dojo::enableView($this->view); }2.Configure the Dojo in the view $this->view->dojo()->enable(); $this->view->doj原创 2012-11-29 16:33:41 · 340 阅读 · 0 评论 -
Some points about modern Dojo
1.Global namespace dojo is not there any longerrequire(["dojo/dom", "dojo/domReady!"], function(dom){ dom.byId("helloworld").innerHTML = "Hello New World!";});The foundation for "modern" Dojo is原创 2012-11-30 08:35:09 · 376 阅读 · 0 评论 -
require, define and parse in the Dojo
1.Analyse require method:if(global.define){ if(has("dojo-log-api")){ signal(error, makeError("defineAlreadyDefined", 0)); } return; }else{ global.define = def; global.require = req;原创 2012-11-30 17:57:40 · 925 阅读 · 0 评论 -
Good Picture Designer and Editor
1. Licensed tools like photoshop;2. Online free tools;3. IDE integration tools;原创 2012-11-19 16:14:09 · 486 阅读 · 0 评论 -
Define and declare method in Dojo
Dojo follows the Asynchronous Module Definition style which is self-speaking.1.Logic in the define method;define method is the function in the dojo base which is located in dojo.js. The statements原创 2012-12-04 10:34:36 · 1883 阅读 · 0 评论 -
Selector in the Dojo
1. dom selectorIn dojo/dom.js, dojo offers dojo.byId() to get the dom element node.dom.byId = function(id, doc){ // inline'd type check. // be sure to return null per documentation, to match原创 2012-12-05 10:21:07 · 451 阅读 · 0 评论 -
Load javascript file dynamically
// This file should be used if you want to debugfunction jqGridInclude(){ var pathtojsfiles = "js/"; // need to be ajusted // set include to false if you do not want some modules to be inclu原创 2012-12-05 16:19:58 · 539 阅读 · 0 评论 -
Style Zend Forms
1.Create jQuery plugin function zendFormStyled$.fn.zendFormStyled = function(method) { // Method calling logic if ( methods[method] ) { return methods[ method ].apply( this, Ar原创 2012-11-23 14:25:15 · 399 阅读 · 0 评论 -
Dom operation in Dojo
Dojo separates the dom operation into different files: dojo/dom.js;dojo/dom-attr.js;dojo/dojo-class.js;dojo/dom-contruct.js;dojo/dom-prop.js;dojo/dom-style.js;dojo/dom-form.js. You can load the indivi原创 2012-12-06 18:27:51 · 521 阅读 · 0 评论 -
Request API in Dojo
In Dojo, request api supports two ways: xhr and node. node is related to Node.js environment, therefore, xhr API will be explored here.In the dojo/request.js file, it loads dojo/request/default.js m原创 2012-12-07 09:34:41 · 1116 阅读 · 0 评论 -
Regular Expressions patterns
The patterns used in RegExp can be very simple, or verycomplicated, depending on what you're trying to accomplish. Tomatch a simple string like "Hello World!" is no harder thenactually writing the str原创 2012-12-26 18:53:25 · 349 阅读 · 0 评论 -
jQuery Object and DOM Element
I remember being struggling between these two concepts in myearly days of jQuery programming, like trying to get value from ajQuery object or call val() on a Dom object, it is not a big issuethough, p原创 2012-12-26 18:53:23 · 590 阅读 · 0 评论 -
Use Dojo in Zend
How can we use Dojo in Zend?Dojo is one kind of resources in Zend and it can be initiated by bootstrap. (Here leaves us a question: what kinds of stuff can be treated as resource in Zend?) publi原创 2012-11-15 08:55:44 · 373 阅读 · 0 评论 -
Smartly load your properties
ClassLoader.getResourceAsStream ("some/pkg/resource.properties"); Class.getResourceAsStream ("/some/pkg/resource.properties"); ResourceBundle.getBundle ("some.pkg.resource");原创 2013-03-06 15:51:47 · 525 阅读 · 0 评论 -
Use Dojo to Replace PrototypeJS codes
1.Old PrototypeJS Script:var loc = document.location.pathname;var tail = "webengine/generated/Init"loc = loc.substr(0,loc.indexOf(tail));var url = loc.concat("protect/RouterServlet?NAV_MENU=TRUE&原创 2013-03-06 10:13:22 · 663 阅读 · 0 评论 -
Top JavaScript MVC Frameworks
As more and more logic ends up being executed in the browser, JavaScript front-end codebases grow larger and more difficult to maintain. As a way to solve this issue developers have been turning to原创 2013-04-05 11:47:34 · 745 阅读 · 0 评论