Source: Http://www.oschina.net/translate/top-10-mistakes-that-c-sharp-programmers-make about C #C # is one of the few languages that reach the Microsoft Common Language Runtime (CLR). The language of the CLR can benefit from the features it brings, such as cross-language integration, exception handling, security enhancements, a simple model of component combinations, and debugging and Analysis Services. As a modern CLR language, C # is the most widely
Article Description: Designer's Chettu artifact Slicy (LAYER CAKE)!.
Automatic cutting tool "slicy"mac OS version (Layer Cake), the real emancipation of the designer artifact!For Chettu Sadly designers must have a sharp weapon! Referrer: Abo Alibaba UI Designer
@zhuhuizero: This software I used for nearly six months, before called Layercake, six months updated 3 times to fix some bugs, really pretty good. Let Chettu become extre
the function declaration and invocation of two places, in addition to acting as the return value of this particular function, the out modifier ref modifier has a very similar place: the address. We can see that C # has completely abandoned the traditional C + + language to give programmers a great degree of freedom, after all, C # is used to develop an efficient next-generation network platform, security-including system security (System structure design) and engineering security (to avoid prog
[Sharp jQuery] learning notes 01, jquery learning notesChapter 1 Understanding jQuery 1. Common JS libraries 2. jQuery advantages 3. Notes for writing
Note the following when calling a chain:
If there are no more than three operations on the same object, write them as one row.
Multiple operations on the same object, one operation per line
A small number of operations on multiple objects, write one row per object (child element indent)
Iv. jQuery o
[Sharp jQuery] learning notes 04, jquery learning notesChapter IV events and animations in jQuery I. Events in jQuery
Load DOM
In JS, the window. onload method is usually used to wait for page loading to complete, while in jQuery, the $ (document). ready () method is used to replace the traditional window. onload method. The two are very different:
The window. onload method is executed only after all the elements (including the files associated wit
");Mrenderer.addxtextlabel (3, "Music");OK, let's run a bit ....SuccessBecause the project requirements are from the server to obtain coordinate values, the client to do display, according to the information given by the server, to determine whether it is a line chart, or a pie chart displayNow there are two very important data, one is the coordinate value, such as the line chart: X-axis, y-coordinate, and the x-axis of the text displayLater will write a tool class, used to get coordinate values
Iterator-more sharp C # code note (3 ),
You can use the yield return keyword to flexibly construct an iterator similar to the return value.Public class EmployeeCollection: IEnumerable
Extensions of the most sharp Visual Studio Web development tools: detailed descriptions of Web tials ins () and studioessenessen
Web Essentials is the best VS extension tool that we have seen so far. Please wait for me to describe the specific functions.
First, install Extension Manager: the latest version is version 2.5 released on the 19th.
Restart your VS development environment to use the convenient functions provided by it.
Web Essentials provi
){Var callback = function (){Return arguments [0];}With (object ){Return eval ('callback ('+ this. toString () + ')');}}// Var obj = {a: 1, B: 2 };// Var bind = (function (){// A = 10;// B = 11;//}). $ Bind (obj );// Bind ();// Alert (obj. );
4. string. Format. Even if many js coder want to have a string. Format method in c # (similar to java), it is not troublesome.
The Code is as follows:
String. prototype. $ format = function (){Var ret;For (var I = 1; ivar exp = new RegExp ('\ {' + (I-1)
Key points in sharp jQuery (3) Events and animations in jQuery (Part II: animation) II. Animation
1. show () and hide () Methods
The Code is as follows:
$ ("Selector"). show ()Restore the default or set display attribute of an element from display: none$ ("Selector"). hide ()Set the display style of the element to none, equal to $ ("selector" ).css ("display", "none ")
(Note: After passing in parameters ,. show () and. the hide () method simultane
Write a plugin that sets and gets the color of the element:First implement the first function, set:;(function($) { $.fn.extend ({ color:function(value) { return this. css ("Color", value); the//css method itself is the jquery object that returns the current element } ); }) (JQuery);$ ("span"). Color ("red"); //CallThen implement the second function, get: If the value is not passed;(function ($) {$.fn.extend ({
, you can add the options to the right, either to the right, or by double-clicking through the middle button. Conversely, it can.Left check Add to right:$ ("#add"). Click (function() { // Add button click event var op = $ ("#select1 option: Selected "); // Gets the selected option Op.appendto ("#select2"); // Add the selected option to the right select,appendto can delete the left and add to the right });The left side is all added to the right:$ ("#add-all"). Click (function() { // Ad
events that can simulate user customizations, as well as parameters that can be passed as a second parameter of trigger22. Animations(1) Show () and hide ()---change display(2) FadeIn () and FadeOut () – Change transparency(3) Slideup () and Slidedown () – Change height(4) animate ({Set parameters}, speed, callback);You can set the accumulation and decrement, for example {' Left ': ' +=50px '}You can set the effect method to perform when the current animation is completed in callback.(5) Stop (
Basic selector: The element with ID one is $ ("#one")Class is the element of one $ (". One")div Element (tag) $ ("div")Hierarchy selector: $ ("a B") selects all B (all descendants) elements in a element$ ("a >b") Select a element B (child element)$ ("a+b") selects the B element immediately following the a element equivalent to $ ("a"). Next ("B")$ ("#two ~div") selects all the Basic Filter Selector: $ ("Div:first") Select the first $ ("Div:last") Select the last $ ("Input:not (. myClass)") Pick
belong to JavaScript, any kind of DOM-enabledIt can be used by the programming language. Its purpose is not limited to the processing of web pages. can also be used toprocess any document written using markup LanguageFor example:XML。2.html_domwhen scripting HTML files using JavaScript and DOM, there are many attributes that are specifically html--dom. Html_dom provides some more concise notation to describe the attributes of various HTML elements. such as:Document.formselement.srconly for Web3.
=quanxuan]'). Click (function () { $ ('input:gt ( 1). Prop ('checked',true)}). Next (). Click (Function () { $ ('input:gt (1)'). Prop ('checked' ) ,false)})Chapter III DOM manipulation in jquery1. Deleting nodes$ (' ul li:eq (1) '). Remove (); After getting the second $ (' ul Li '). Remove (' li[title!= pineapple] '); You can do selective deletions.Empty () Empties node contents2. Replication nodesClone ()//$ (' ul Li '). Clone (). AppendTo (' ul '); Copy Li and append to UL Copy the event
reveal.framework to the project and select Copy items into destination group ' s folder (if needed) in the popup box.4. In the project setup, add-objc-framework Reveal to the other Linker flags itemIf you are using a Xcode4, you also need to add-frame cfnetwork-frame quartzcore-framework coregraphics5. Run your application, the application can be in the simulator, but also on the real machine, but must ensure that reveal and your device in the same network, and then select the reveal inside the
Window.onload $ (document). Ready ()The execution time must be executed when all the DOM structures in the Web page have been completed when all content is loaded.The number of writes can not be written at the same time more than one, each will execute Example: can be popped two times "Hello Worl DWindow.onload=function () {Alert ("Test1");}Window.onload=function () {Alert ("Test2");}Results will only be entered as "Test2"Shorthand No $ (function () {})
Dom Objectvar Pname=document.getelementbyid ("id");Pname.innerhtml= ""; Enter content into the page jquery ObjectObjects produced after wrapping Dom objects with jqueryFor example:$ ("#foo"). HTML () is equivalent to document.getElementById ("foo"). InnerHTMLHowever, the methods of the two objects are different from each other. Dom object converted to jquery objectvar My=document.getelementbyid ("foo");var $my =$ (my);jquery objects converted to DOM objects(1), jquery object is an array-like
Get focus and lose focus change style
Change text box height/change scroll bar
Tip: Note Use the for label for 1. Get focus and lose focus change styleInput:focus,textarea:focus { border: 1px solid #ff3300; background-color: #fcc; } /* IE6 does not support except for hyperlink elements: hover Pseudo-class selectors. */So$ (": Input"). Focus (function() { $ (this). AddClass ("Focus"); }). Blur (function() { $ (this). Remov
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.