9eFish - 带有 LA.NET [EN] 标签的文章
1
臭虫

Javascript里的方法 – part I - LA.NET [EN]

dotlivedotlive 发表于 202 天, 13 小时, 54 分钟 之前
Wednesday, August 26, 2009 1:46:13 AM GMT Friday, August 21, 2009 1:09:14 AM GMT
Functions in Javascript – part IPublished Thu, Aug 20 2009 14:31 Douglas Crockford says that the best part of Javascript is its implementation of functions. And I think that he’s absolutely right! The first thing you should keep in mind is that functions are objects in Javascript! The second interesting thing about functions is that they can be invoked (I guess that’s why they’re called functions, right?). The simples way to create a function is through a function li... (more)
类别: UX | 点击: 0 | 评论 | | 源: msmvps.com
标签: Javascript, LA.NET [EN]
1
臭虫

对象和原型属性 - LA.NET [EN]

dotlivedotlive 发表于 202 天, 13 小时, 56 分钟 之前
Wednesday, August 26, 2009 1:46:13 AM GMT Friday, August 21, 2009 1:06:48 AM GMT
Objects and the prototype propertyPublished Thu, Aug 20 2009 14:01 In the previous post, we’ve started looking at objects. At the time, I’ve said that next post would be on functions, but after some thinking, I’ll be talking about the “hidden” prototype property. Besides “custom” properties specified through name/value pairs, all Javascript objects have a special property accessed through the prototype name. This property references the so called prototype object (whi... (more)
类别: UX | 点击: 0 | 评论 | | 源: msmvps.com
标签: Javascript, LA.NET [EN]
1
臭虫

简单的Javascript类型和对象- LA.NET [EN]

dotlivedotlive 发表于 202 天, 13 小时, 58 分钟 之前
Wednesday, August 26, 2009 1:46:13 AM GMT Friday, August 21, 2009 1:04:44 AM GMT
Simple types and objects in JavascriptPublished Thu, Aug 20 2009 12:27 When I first started working with Javascript, I was a little surprise to know that you’ve got two “basic” types in BLOCKED SCRIPT there are simple types and objects. Simple types are numbers, strings, bools, null and undefined. Everything else is an object. Objects are associated with two interesting features in BLOCKED SCRIPT unlike most OO languages, there really isn’t the concept of a class in... (more)
类别: UX | 点击: 0 | 评论 | | 源: msmvps.com
标签: Javascript, LA.NET [EN]
1
臭虫

JQuery: full control with the $.ajax function - LA.NET [EN]

adminadmin 发表于 203 天, 13 小时, 4 分钟 之前
Friday, August 21, 2009 1:27:01 AM GMT Thursday, August 20, 2009 1:59:34 AM GMT
JQuery: full control with the $.ajax functionPublished Wed, Aug 19 2009 15:17 In the previous posts, we’ve met several helper methods which simplify the code needed to perform remote out-of-band requests. In this post, we’ll be introducing the all mighty $.ajax method. This method is used by all the other methods we’ve seen until now and gives you complete control over the request. Currently, you’re supposed to use an anonymous object to pass all those definitions (... (more)
类别: UX | 点击: 0 | 评论 | | 源: msmvps.com
标签: JQuery, LA.NET [EN]
1
臭虫

JQuery: deferred script loading

xgluxvxgluxv 发表于 203 天, 22 小时, 57 分钟 之前
Thursday, August 20, 2009 1:57:58 AM GMT Wednesday, August 19, 2009 4:06:33 PM GMT
Deferred script loading is a technique which can be used to reduce the initial loading time of any page. The idea is to load only the basic JavaScript code that is necessary for the initial loading operations of the page and then perform additional downloads for features that the user might use after initial rendering. (more)
类别: UX | 点击: 3 | 评论 | | 源: msmvps.com
标签: JQuery, LA.NET [EN]
1
臭虫

JQuery: the $.getJson method

xgluxvxgluxv 发表于 203 天, 23 小时 之前
Thursday, August 20, 2009 1:57:58 AM GMT Wednesday, August 19, 2009 4:03:19 PM GMT
In the previous post, we’ve met the $.get and $.post methods. At the time, we’ve seen how we could easily load a JSON payload returned from the server. If you know that you’ll be getting JSON and that the request will be an HTTP GET, then you can use the $.getJson utility function instead of the $.get function. (more)
类别: Foundation | 点击: 1 | 评论 | | 源: msmvps.com
标签: JQuery, LA.NET [EN]
1
臭虫

JQuery: the $.get and $.post methods

xgluxvxgluxv 发表于 203 天, 23 小时, 1 分钟 之前
Monday, August 24, 2009 1:12:28 AM GMT Wednesday, August 19, 2009 4:01:57 PM GMT
In this post we’ll keep looking at JQuery’s helper methods for remote calls and we’ll see how we can use the get and post functions for performing HTTP GET and POST requests. Both functions (notice that these are utility functions and not JQuery object methods!) expect several parameters: $.get( url, [data], [callback], [type] ) $.post( url, [data], [callback], [type] ) (more)
类别: UX | 点击: 0 | 评论 | | 源: msmvps.com
标签: JQuery, LA.NET [EN]
1
臭虫

JQuery: getting started with AJAX - LA.NET [EN]

adminadmin 发表于 205 天, 12 小时, 20 分钟 之前
Friday, August 21, 2009 1:27:01 AM GMT Tuesday, August 18, 2009 2:43:26 AM GMT
JQuery: getting started with AJAXPublished Mon, Aug 17 2009 14:34 Today marks the beginning of using JQuery for handling AJAX requests. This is going to be a short post and we’ll be talking about the load method. The load method is able to perform get or post requests to replace the contents of the elements contained in the wrapped set with the response returned from the server side. As you’ve probably guessed, this method will only be usable in certain (few!) scenari... (more)
类别: UX | 点击: 0 | 评论 | | 源: msmvps.com
标签: JQuery, LA.NET [EN]
1
臭虫

Scopes and contexts in Javascript - LA.NET [EN]

dotlivedotlive 发表于 206 天, 13 小时, 49 分钟 之前
Thursday, August 20, 2009 1:57:58 AM GMT Monday, August 17, 2009 1:13:38 AM GMT
Scopes and contexts in JavascriptPublished Fri, Aug 14 2009 10:16 [Update: thanks to Howard, I’ve updated the typo regarding global functions.] In a previous post, we’ve talked about scopes. Today we’ll be talking about execution contexts. Every line of JS code you write runs in a certain execution context. If you’re coming to JS from an object oriented language, then you should recognize this concept. In Javascript, you can use the this keyword to access the current... (more)
类别: UX | 点击: 0 | 评论 | | 源: msmvps.com
标签: Javascript, LA.NET [EN]
1
臭虫

JQuery: sliding - LA.NET [EN]

adminadmin 发表于 209 天, 11 小时, 44 分钟 之前
Wednesday, August 19, 2009 1:54:46 AM GMT Friday, August 14, 2009 3:18:53 AM GMT
JQuery: slidingPublished Thu, Aug 13 2009 9:59 In this post, we’ll take a look at the JQuery methods used for sliding animations. We’ve got 3 methods for executing sliding animations:slideDown: shows all the hidden elements contained in the wrapped set of the JQuery object.slideUp: hides all visible elements defined in the wrapped set.slideToggle: toggles the elements between hidden and visible. The methods expect the traditional speed (you can pass an integer or one... (more)
类别: UX | 点击: 0 | 评论 | | 源: msmvps.com
标签: JQuery, LA.NET [EN]
1
臭虫

Javascript - understanding scope - LA.NET [EN]

adminadmin 发表于 209 天, 11 小时, 45 分钟 之前
Wednesday, August 19, 2009 1:54:46 AM GMT Friday, August 14, 2009 3:18:21 AM GMT
Javascript - understanding scopePublished Thu, Aug 13 2009 15:32 Since I’ve been digging into JQuery, I though that it would also be a good idea to write a little bit more about Javascript. In my (limited) experience, I’ve met many developers who say that they really know Javascript and that it’s a really simple language. The problem is that they have lots of trouble in understanding and explaining the basic concepts/feature of the language. I’m not really a Javascrip... (more)
类别: UX | 点击: 0 | 评论 | | 源: msmvps.com
标签: Javascript, LA.NET [EN]
1
臭虫

JQuery: fading elements - LA.NET [EN]

carolhaozicarolhaozi 发表于 211 天, 2 小时, 42 分钟 之前
Wednesday, August 19, 2009 1:54:46 AM GMT Wednesday, August 12, 2009 12:21:15 PM GMT
JQuery: fading elementsPublished Wed, Aug 12 2009 11:29 In this post we’ll keep looking at the animations and we’ll see how to add fading effects to an element. Unlike showing and hiding, which affect several css properties of the element, fading will only affect the opacity (alpha filters if you’re running IE) and display of an element. Currently, JQuery offers 3 methods: fadeIn, fadeOut and fadeTo. Here’s a small sample that shows how you can use the fadeIn and fa... (more)
类别: UX | 点击: 0 | 评论 | | 源: msmvps.com
标签: JQuery, LA.NET [EN]
1
臭虫

JQuery: utility functions VIII – creating arrays from other objects - LA.NET [EN]

adminadmin 发表于 212 天, 13 小时, 21 分钟 之前
Sunday, August 16, 2009 3:02:32 PM GMT Tuesday, August 11, 2009 1:41:42 AM GMT
JQuery: utility functions VIII – creating arrays from other objectsPublished Mon, Aug 10 2009 14:30 The utility function makeArray is a helper which is used internally by JQuery to transform collections of nodes into arrays. Even though this function is “public”, you’re not expected to use it much. Here’s its current internal implementation:makeArray: function( array ) { var ret = []; if( array != null ){ var i = array.length; // The window... (more)
类别: UX | 点击: 0 | 评论 | | 源: msmvps.com
标签: JQuery, LA.NET [EN]
1
臭虫

JQuery: utility functions IX – transforming arrays - LA.NET [EN]

adminadmin 发表于 212 天, 13 小时, 22 分钟 之前
Sunday, August 16, 2009 3:02:32 PM GMT Tuesday, August 11, 2009 1:41:12 AM GMT
JQuery: utility functions IX – transforming arraysPublished Mon, Aug 10 2009 14:51 The map utility function can be used to translate all the elements contained in the array into other set of items. You’ll find this method useful when you need to transform a collection of items A into items. The function expects two parameters:an array of items that is going to be translated;a callback function which will be called for each item and is responsible for transforming the ... (more)
类别: UX | 点击: 1 | 评论 | | 源: msmvps.com
标签: JQuery, LA.NET [EN]
1
臭虫

JQuery: utility functions X – extending objects - LA.NET [EN]

adminadmin 发表于 212 天, 13 小时, 23 分钟 之前
Sunday, August 16, 2009 3:02:32 PM GMT Tuesday, August 11, 2009 1:40:36 AM GMT
JQuery: utility functions X – extending objectsPublished Mon, Aug 10 2009 15:06 This is the last post of the day on JQuery and we’re going to talk about extending objects with the extend utility function. The idea is simple: how can you add properties from an object to another and get a new object? For instance, suppose you’ve got these two anonymous objects:var student = { name: "Luis", age: 20 }; var address = { street: "some street", civilParish: "somewhere"}; An... (more)
类别: UX | 点击: 0 | 评论 | | 源: msmvps.com
标签: JQuery, LA.NET [EN]
1
臭虫

JQuery: utility functions VII – concatenating arrays - LA.NET [EN]

carolhaozicarolhaozi 发表于 212 天, 22 小时, 43 分钟 之前
Tuesday, August 11, 2009 1:47:07 AM GMT Monday, August 10, 2009 4:19:47 PM GMT
JQuery: utility functions VII – concatenating arraysPublished Mon, Aug 10 2009 11:23 In this post we’re going to take a look at the merge utility function. This function expects two arrays that will be merged. The method returns a reference to the first array augmented with the elements contained on the second (which remains unchanged). Here’s a small snippet that shows how to use this function:var arr = [0, 1, 2]; var anotherArr = [-1, -2, -3]; var merged = $.merge... (more)
类别: UX | 点击: 0 | 评论 | | 源: msmvps.com
标签: JQuery, LA.NET [EN]
1
臭虫

JQuery: utility functions VI – checking if an item is in an array - LA.NET [EN]

carolhaozicarolhaozi 发表于 212 天, 22 小时, 45 分钟 之前
Tuesday, August 11, 2009 1:47:07 AM GMT Monday, August 10, 2009 4:18:07 PM GMT
JQuery: utility functions VI – checking if an item is in an arrayPublished Mon, Aug 10 2009 10:34 In the last post we’ve seen how to get all the items that comply with a specific filter. In this post, we’re going to see how to see if an item is in an array. The easiest way to do that is to use the inArray function. Take a look at the following snippet:var arr = [0, -2, 4, 6, - 9]; var positives = $.inArray(4,arr); The inArray method expects two parameters: the item ... (more)
类别: UX | 点击: 0 | 评论 | | 源: msmvps.com
标签: JQuery, LA.NET [EN]
1
臭虫

JQuery: utility functions V – finding elements in an array - LA.NET [EN]

carolhaozicarolhaozi 发表于 212 天, 22 小时, 47 分钟 之前
Tuesday, August 11, 2009 1:47:07 AM GMT Monday, August 10, 2009 4:16:23 PM GMT
JQuery: utility functions V – finding elements in an arrayPublished Mon, Aug 10 2009 10:15 Today we’re going to talk about the grep utility function. You can use the grep function to get the elements of the array that match a specific custom filter. The grep function expects three parameters. The first two are mandatory: an array that is going to be enumerated and a callback function which is responsible for checking which items of the array comply with the custom fil... (more)
类别: UX | 点击: 0 | 评论 | | 源: msmvps.com
标签: JQuery, LA.NET [EN]
1
臭虫

JQuery: utility functions IV – interacting through arrays - LA.NET [EN]

adminadmin 发表于 214 天, 1 小时, 18 分钟 之前
Monday, August 10, 2009 1:39:24 AM GMT Sunday, August 09, 2009 1:45:04 PM GMT
JQuery: utility functions IV – interacting through arraysPublished Fri, Aug 7 2009 15:07 In this post, we’re going to look at the each utility function. This function expects two parameters: an object which is going to be enumerated and a callback function reference which is going to be called for each item in the enumerated set. It’s important to understand that this is different from the each jQuery method (which is used for interacting over each element of the wrap... (more)
类别: UX | 点击: 0 | 评论 | | 源: msmvps.com
标签: JQuery, LA.NET [EN]
1
臭虫

JQuery: utility functions – testing helpers - LA.NET [EN]

adminadmin 发表于 214 天, 1 小时, 20 分钟 之前
Wednesday, August 12, 2009 1:55:02 AM GMT Sunday, August 09, 2009 1:43:20 PM GMT
JQuery: utility functions – testing helpersPublished Fri, Aug 7 2009 14:32 One of the things you might need to do is check if a reference is an array or a function. JQuery introduces two simple utility functions for performing these checks: the isArray and the isFunction methods. Both of them expect a single parameter which is used to perform the adequate test. Here’s a really dumb example that shows how to use the isFunction function:var sayHi = function(name) { ... (more)
类别: UX | 点击: 0 | 评论 | | 源: msmvps.com
标签: JQuery, LA.NET [EN]
Previous 1 2 3 Next