Smarty is a PHP template engine that separates logical programs from external content and provides an easy to manage approach.Smarty requires the Web server to run php4.0.6 and more versions.Smarty installation requires Smarty library files. can go
Design
Author's blog: http://blog.csdn.net/oyiboy/
The reason I'm still advocating MVC to develop an ASP is to make the process-oriented thinking way into an object-oriented way of thinking, which is good for developers of any language.MVC is a
This article is the last in the Pig System Analysis series, which mainly discusses how to extend the pig function, not only to introduce the UDFs extension mechanism provided by pig itself, but also to explore the possibility of pig extension from
web| page
We know that the easiest way to reference an HTML element in a Web page is to use the getElementById method, or a similar set of GETELEMENTSBYXXX methods. However, it should be noted that none of these methods can really uniquely determine
JS Performance optimization
JavaScript is an interpreted language, performance can not achieve and C, C + +, such as the level of compiled languages, but there are some ways to improve.
1. Cycle
The looping mode in JavaScript has a for (;;),
javascript| objects
From the first published article, until now to publish a second article, I do not think, I will not send out.
These days have been looking for JavaScript all the objects of the properties and methods, there is no way, had to
This article mainly introduces the JSON string and the conversion between objects in detail, the need for friends can refer to the following
JSON (JavaScript Object notation) is a subset of the JavaScript programming language. Because JSON is a
Coding | functions | converting
1. ' UTF to GB---convert UTF8 encoded text to GB encoded textfunction UTF2GB (UTFSTR)
For Dig=1 to Len (UTFSTR)' If the UTF8 encoded text starts with a%, it convertsIf mid (utfstr,dig,1) = "%" Then' UTF8 encoded text
1.document.formname.item ("ItemName") problem
Note: Under IE, you can use Document.formName.item ("ItemName") or document.formname.elements["elementname"]; Firefox, you can only use the document.formname.elements["ElementName"].
Workaround: Unify
Use the Eval method to assign the method represented by the method name as an object to the Func attribute of Method1, and the friends who need it can refer to theThe code is as follows: function A () {alert ("Fun A ()"); Function B () {alert ("Fun
Bookmark | Web page in the common scroll bar and bookmark the effect of the Web page in Flash How to achieve it? First let's look at the effect chart:
In the image above, the right text can scroll up and down freely with the scroll bar on the
When using DataList data binding:
Copy Code code as follows:
" width= "130px" >
Run the error of "too many characters in character text", at this point because eval must be a string ("") cannot be used in single quotes, this is the surface
Asp.net| Create | The network in the digital age, we often take photos for souvenir, and as digital photos increase, it is often necessary to manage these photos well so as to better consult the souvenir. Now there are a lot of electronic albums
Encryption | decryption
Source of information: The Hacker line of defense
This article presents a total of seven methods:One: The simplest encryption and decryptionSecond: The magical meaning of the escape character "\"III: Encode (self-create
The function of the anonymous function is to enlarge the function, and before PHP 5.3, we have only two choices to pass the callback way:
The function name of the string
Using Create_function's return
After PHP5.3, we have one more choice, namely
The effect of the following figure:
Idea: First get the city of the selected province or the county of your choice, convert the acquired data to a Jason-formatted string return to the AJAX client, where the client uses eval to convert the string
1. Copy the coding into the head of your HTML document
2. Add the last code into the body of your HTML document-->
Click Drag to enlarge the picture size.
Width= "height=" name= "Image1"
ondrag= "Resizeimage (event," Image1 ")" > This article
After reading the JavaScript data types and expressions and operator-related knowledge that you can his experiment a JavaScript pen question, I did not expect to die again and again in commas, colons and parentheses, we have to look at these
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.