随笔 - 56,  文章 - 267,  评论 - 21,  阅读 - 67万
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

文章分类 -  javascript

IE下的firebuglite的配置
摘要:firebuglite的配置 阅读全文
posted @ 2011-06-22 14:31 myjavawork 阅读(119) 评论(0) 推荐(0) 编辑
基于前端的性能优化
摘要:基于前端的性能优化 阅读全文
posted @ 2011-03-31 14:57 myjavawork 阅读(185) 评论(0) 推荐(0) 编辑
javascript下模块类似于jquery中each的事件
摘要:javascript下模块类似于jquery中each的事件 阅读全文
posted @ 2011-03-30 23:57 myjavawork 阅读(138) 评论(0) 推荐(0) 编辑
javascript code optimization
摘要:This topic is the place I always wanted to summarize. Mainly the following aspects from the discussion.DOM object-related variables and1.Not defined to avoid the use of variables, because the browser will find the variable layers up to the last have not found it to define a new variable, and this pe 阅读全文
posted @ 2011-03-30 11:25 myjavawork 阅读(203) 评论(0) 推荐(0) 编辑
javascript下面向对象来实现功能的思路
摘要:To develop during the JS object-oriented programs, sometimes often feel that there is no thought, today they are doing to the development of the JS object program by a review, the basic development idea to write about. Then came the light of this idea for development.以一个popwindow窗口效果为例吧。有一个前提条件,这个窗口 阅读全文
posted @ 2011-03-30 10:52 myjavawork 阅读(232) 评论(0) 推荐(0) 编辑
Front-end development process of performance testing tool
摘要:Doing the front end, often need to use optimization tools that he made ​​a summary1.以W3C为主的有:1.基于Firebug的ySlow(有yahoo的很多优化技巧文档), firefox也有PageSpeed, httpwatch profeesional.Google的Page Speed2.基于IE的IE DOM Inspector , httpwatch profeesional , fiddler 3. 好的压缩JS以及CSS的工具 YUICompressor (Yahoo专门来处理压缩JS) 4.好 阅读全文
posted @ 2011-03-29 23:31 myjavawork 阅读(256) 评论(0) 推荐(0) 编辑
achieve animation and capsulate the function that come out animation effect
摘要:In the javascript to achieve animation effects in general accordance with the following few ideas to achieve:1.With the setInterval () function to call the cycle of。2.setInterval function in the call process, changing the style of the corresponding DOM object。3.Have a start value and end value, whil 阅读全文
posted @ 2011-03-29 18:57 myjavawork 阅读(237) 评论(0) 推荐(1) 编辑
capsulate ajax(asynchronous javascirpt and xml) aspect in javascript techology
摘要:He has been in the AJAX method of JQUERY very impressed, because it has a special package was good. Recently watching a video about JS. They found the package for AJAX also doing better, then find a method of dealing with the package AJAX。对于AJAX的封装1.对xhr对象的封装对于一个已经有了的命名空间为前提var Base={};创建XHR对象Base.c 阅读全文
posted @ 2011-03-29 18:01 myjavawork 阅读(265) 评论(0) 推荐(0) 编辑
各种drag效果的实现
摘要:各种drag效果的实现 阅读全文
posted @ 2011-03-28 23:33 myjavawork 阅读(156) 评论(0) 推荐(0) 编辑
javascript与popwindow的实现思路
摘要:popwindow的实现思路 阅读全文
posted @ 2011-03-28 23:32 myjavawork 阅读(285) 评论(0) 推荐(0) 编辑
JS CSS style-related processing public method
摘要:Generally, JS to handle styles as long as the object through the DOM className style attributes, and to complete the operation. But there are so few questions:1.ClassName is not so easy to change, similar to the "base red" this multi-class name of the definition of the way alone className 阅读全文
posted @ 2011-03-28 17:33 myjavawork 阅读(373) 评论(0) 推荐(0) 编辑
public method in the DOM javascript
摘要:Package for the DOM to be carried out, there are several aspects of the following:1.The original DOM method is unable to provide judgments on the nodeType。2.in accordance with the class name, etc. to find DOM nodes in different browsers have different。3.The operation of the original a little too com 阅读全文
posted @ 2011-03-28 17:06 myjavawork 阅读(204) 评论(0) 推荐(0) 编辑
Use modern solves the events in events and W3C IE not consistent differences
摘要:1.Why use based on modern event handling mechanism。There are manytraditionalevent bindingdefects,such asan objectcan notregister multipleeventsonthe same eventhandler.As in theonloadevent,using thetraditional way, then,afterapreviousevent functionwillbe rewritten。2.Theevent mechanismusing moderncode 阅读全文
posted @ 2011-03-28 16:02 myjavawork 阅读(182) 评论(0) 推荐(0) 编辑
javascript events under the common encapsulation method
摘要:Asfor theIEandW3Ceventhandlingis very different, I oftenhave tore-considerthe reconstruction ofthe event.The followingis asummary oftheirworkpackagessome of the events。1.对于事件对象的获得上--指传统的对象监听function (evt) { if (!evt) { evt = window.event; }}//或者进行进一步的简写oDiv.onclick=function (evt) { evt=evt || window 阅读全文
posted @ 2011-03-27 18:27 myjavawork 阅读(201) 评论(0) 推荐(0) 编辑
Registration has been verified on the year, month, day appropriate way to achieve change and leap year
摘要:Registrationhas beenverifiedonthe year, month, dayappropriateway to achievechange andleap year:1.And theaverage yearinaleap yeardivided。2.月有30,31,28,29的情况。Sample codeto solve this problemas follows: <script type="text/javascript"> function $(id){ return document.getElementById(id); } 阅读全文
posted @ 2011-03-27 18:03 myjavawork 阅读(200) 评论(0) 推荐(0) 编辑
javascript下的私有属性以及静态方法
摘要:今天完成总结 阅读全文
posted @ 2011-03-13 15:17 myjavawork 阅读(136) 评论(0) 推荐(0) 编辑
classes and inheritance javascript
摘要:Inheritanceon thejavascriptin, javascriptobjectinheritanceusually havethe following5 ways:1.Pretendingthe object2.call()方式3.apply()方式4.Prototype chain5.混合方式Constructortoimplementation inheritance1.InheritanceonJSshould firstbe awarethat inonly the classcanbe inherited.However,there is noclassinJS, J 阅读全文
posted @ 2011-03-13 15:14 myjavawork 阅读(218) 评论(0) 推荐(0) 编辑
与表单相关的JS处理
摘要:表单处理 表单的事件 jQuery('#frmsumbit').click(function(){ if(jQuery('#email').val() != ''){ check_email(); } if(jQuery('#qq').val() != ''){ check_qq(); } var numError = jQuery('#postform .onError').length; if(jQuery('#postform .onError')){ return false; } }) }); 表单中的常用控件认识: 1. 单选框必须放置在同一个组中或者是name的名称要相同。 2. 阅读全文
posted @ 2010-12-28 18:07 myjavawork 阅读(211) 评论(0) 推荐(0) 编辑
JS与PHP的对应关系
摘要:PHP与JS在函数中的对应关系 PHP=================================String:explode implodetrim number_format strlen strrpos strposstrtr数组操作array_diff array_key_exists array_push array_rand array_search array_slice in_array array_valuescounteach 时间处理dategetdate mktime strtotimetimezone_offset_get check_date函数输出var_d 阅读全文
posted @ 2010-12-28 18:07 myjavawork 阅读(674) 评论(0) 推荐(0) 编辑
javascript书写规范
摘要:语法的规范1.变量的声明:如果是局部变量,使用var foo;foo = 'bar';2.对于返回boolean的值,尽量使用强制比较符号。在JS中, 0,"",false,undefined,null都是相关的,特别是在if语句的判断中,所以应该尽量使用强制比较符号。写法规范: 一定要注意空格jQuery.fn = jQuery.prototype = {};方法以及属性的写法,空格的注意以及参数的空格init: function( selector, context ) {}if语句以及变量的赋值, 还是要注意空格if ( typeof selector === "string" ) {/ 阅读全文
posted @ 2010-12-27 10:19 myjavawork 阅读(263) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示