易截截图软件、单文件、免安装、纯绿色、仅160KB

压缩javascript和css


This document is for establishing build standard for JavaScript and CSS compression
The objective for this document is to establish a companywide JavaScript and CSS compression standard that can be shared crossing multiple SharePoint product development projects. This is the first draft
Overview
Our SharePoint development involves many client side scripts programming style sheet design. In order to improve JavaScript and CSS loading performance and protect our work from copying, we need to establish a standard way to make our script and css shorter and hard to read. Following steps will help you to understand how to do it without knowing all implementation details.
Step 1: Build Compression Environment
System Requirement: Windows XP/Server 2003 Virtual Environment.
Software: JDK 1.4+, yuicompressor-2.4.2.jar
 
Step 2: JavaScript Naming Standard
1)    JavaScript Naming Standard: name-x.y.z.js
2)    Compressed JavaScript Naming Standard: name-x.y.x.min.js
Step 3: Compress a JavaScript
Usage: java -jar yuicompressor-2.4.2.jar myfile-x.y.z.js -o myfile-x.y.z.min.js
 
java -jar yuicompressor-x.y.z.jar [options] [input file]
Global Options
  -h, --help               Displays this information
  --type <js|css>          Specifies the type of the input file
  --charset <charset>      Read the input file using <charset>
  --line-break <column>    Insert a line break after the specified column number
  -v, --verbose             Display informational messages and warnings
  -o <file>                 Place the output into <file>. Defaults to stdout.
JavaScript


相关文档:

通过javascript获得url参数

页面提交数据一般有两种方法:get,post。post就是所谓的form提交,使用视图;get是通过url提交。
Get方法一般用后台代码(如asp,asp.net)获得参数,代码很简单:Request.QueryString["id"];即可获取。 
有些时候需要直接在前台获取url参数,要用到javascript,js没有直接获取url参数的方法,那么,我们如何通过js ......

使用DisplayTag和JavaScript创建增强型的表格


Every Web developer has to tangle with tables. A new open source library, DisplayTag, can make life with tables much more organized. Find out how to combine the DisplayTag library with JavaScript to make a slick app that displays line item details.  
by Stephen Strenn
isplaying data in a t ......

javascript to ajax(一)

AJAX 在浏览器与 Web 服务器之间使用异步数据传输(HTTP 请求),这样就可使网页从服务器请求少量的信息,而不是整个页面。
AJAX 基于 Web 标准
AJAX 基于下列 Web 标准:
JavaScript
XML
HTML
CSS
在 AJAX 中使用的 Web 标准已被良好定义,并被所有的主流浏览器支持。AJAX 应用程序独立于浏览器和平台。
Deafault. ......

javascript学习日志三

1、对象属性:.length为长度属性,
         .toUpperCase()为大写字母文本
2、indexof函数方法返回字符串内第一次出现字符串的字符位置,字符串的位置从0开始,如果没有找到子字符串,则返回-1
3、match()方法可用来找到字符串中特定的字符,如果找到则返回这个字符,如果没有 ......

40种网页常用小技巧(javascript)

<a href="<%=Request.ServerVariables("HTTP_REFERER")%>">返回上一步</a>
     
    1. oncontextmenu="window.event.returnValue=false" 将彻底屏蔽鼠标右键
    <table border oncontextmenu=return(false)><td>no</table ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号