`
txf2004
  • 浏览: 6986187 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论
阅读更多
版权声明:原创作品,允许转载,转载时请务必以超链接形式标明文章原始出版、作者信息和本声明。否则将追究法律责任。http://blog.csdn.net/mayongzhan - 马永占,myz,mayongzhan

<!DOCTYPE html PUBLIC "-//W<?xml:namespace prefix = st1 ns = "urn:schemas-microsoft-com:office:smarttags" /><chmetcnv w:st="on" unitname="C" sourcevalue="3" hasspace="False" negative="False" numbertype="1" tcsc="0">3C</chmetcnv>//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Language" content="utf-8" />

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<meta name="author" content="马永占(MyZ)" />

<meta name="Copyright" content="马永占(MyZ)" />

<meta name="description" content="" />

<meta name="keywords"content="" />

<link rel="icon" href="" type="image/x-icon" />

<link rel="shortcut icon" href="" type="image/x-icon" />

<link href="" rel="stylesheet" type="text/css" />

<title></title>

<style type="text/css">

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

</style>

<script type="text/javascript" src="jquery-<chsdate w:st="on" year="1899" month="12" day="30" islunardate="False" isrocdate="False">1.2.6</chsdate>.js"></script>

</head>

<body>

<script type="text/javascript">

$("document").ready(function(){

////////////////////////////////////////////////////////////////////////////////////////

//console.log(typeof "some string"); // "string"

////////////////////////////////////////////////////////////////////////////////////////

//quote

//"You make 'me' sad."

//'Holy "cranking" moses!'

//"<a href=\"home\">Home</a>"

////////////////////////////////////////////////////////////////////////////////////////

//"hello".charAt(0) // "h"

//"hello".toUpperCase() // "HELLO"

//"hello".toLowerCase() // "hello"

//"hello".replace(/vinoth/g, "usha") // "hxllx"

//"1,2,3".split(",") // ["1", "2", "3"]

////////////////////////////////////////////////////////////////////////////////////////

//"Hello".length // 5

//"".length // 0

////////////////////////////////////////////////////////////////////////////////////////

//!"" // true

//!"hello" // false

////////////////////////////////////////////////////////////////////////////////////////

//typeof 12 // "number"

//typeof 3.543 // "number"

////////////////////////////////////////////////////////////////////////////////////////

//!0 // true

//!1 // false

//!-1 // false

////////////////////////////////////////////////////////////////////////////////////////

//0.1 + 0.2 // 0.30000000000000004

////////////////////////////////////////////////////////////////////////////////////////

//Math.PI // 3.141592653589793

//Math.cos(Math.PI) // -1

////////////////////////////////////////////////////////////////////////////////////////

//parseInt("123") = 123 (implicit decimal)

//parseInt("010") = 8 (implicit octal)

//parseInt("0xCAFE") = 51966 (implicit hexadecimal)

//parseInt("010", 10) = 10 (explicit decimal)

//parseInt("11", 2) = 3 (explicit binary)

//parseFloat("10.10") = 10.1

////////////////////////////////////////////////////////////////////////////////////////

//"" + 1 + 2; // "12"

//"" + (1 + 2); // "3"

////////////////////////////////////////////////////////////////////////////////////////

//String(1) + String(2); //"12"

//String(1 + 2); //"3"

////////////////////////////////////////////////////////////////////////////////////////

//parseInt("hello", 10) // <place w:st="on">NaN</place>

//isNaN(parseInt("hello", 10)) // true

////////////////////////////////////////////////////////////////////////////////////////

//1 / 0 // Infinity

////////////////////////////////////////////////////////////////////////////////////////

//typeof <place w:st="on">NaN</place> // "number"

//typeof Infinity // "number"

////////////////////////////////////////////////////////////////////////////////////////

//NaN == <place w:st="on">NaN</place> // false (!)

////////////////////////////////////////////////////////////////////////////////////////

//Infinity == Infinity // true

////////////////////////////////////////////////////////////////////////////////////////

//if ( true ) console.log("always!")

//if ( false ) console.log("never!")

//$("...").somePlugin({

// hideOnStartup: true,

// onlyOnce: false

//});

////////////////////////////////////////////////////////////////////////////////////////

//var x = {};

//var y = {

//name: "Pete",

//age: 15

//};

////////////////////////////////////////////////////////////////////////////////////////

//typeof {} // "object"

////////////////////////////////////////////////////////////////////////////////////////

//y.name // "Pete"

//y.age // 15

//x.name = y.name + " Pan" // "Pete Pan"

//x.age = y.age + 1 // 16

////////////////////////////////////////////////////////////////////////////////////////

//var operations = {

// increase: "++",

// decrease: "--"

//}

//var operation = "increase";

//operations[operation] // "++";

//operations["multiply"] = "*"; // "*"

////////////////////////////////////////////////////////////////////////////////////////

//var obj = {

// name: "Pete",

// age: 15

//};

//for(key in obj) {

// console.log("key", key, "value", obj[key]);

//}

//// "key", "name", "value", "Pete"

//// "key", "age", "value", 15

////////////////////////////////////////////////////////////////////////////////////////

//jQuery.each(obj, function(key, value) {

// console.log("key", key, "value", value);

//});

////////////////////////////////////////////////////////////////////////////////////////

//!{} // false

////////////////////////////////////////////////////////////////////////////////////////

//var form = $("#myform");

//form.clearForm; // undefined

//form.fn.clearForm = function() {

// return this.find(":input").each(function() {

// this.value = "";

// }).end();

//};

//form.clearForm() // works for all instances of jQuery objects, because the new method was added to the prototype

////////////////////////////////////////////////////////////////////////////////////////

//$("#myform").ajaxForm({

// url: "mypage.php",

// type: "POST"

//});

////////////////////////////////////////////////////////////////////////////////////////

//$("#myform").ajaxForm();

////////////////////////////////////////////////////////////////////////////////////////

//var x = [];

//var y = [1, 2, 3];

//typeof []; // "object"

//typeof [1, 2, 3]; // "object"

//x[0] = 1;

//y[2] // 3

////////////////////////////////////////////////////////////////////////////////////////

//for (var i = 0; i < a.length; i++) {

// // Do something with a[i]

//}

//for (var i = 0, j = a.length; i < j; i++) {

// // Do something with a[i]

//}

//for (var i = 0, item; item = a[i]; i++) {

// // Do something with item

//}

//var x = [1, 2, 3];

//jQuery.each(x, function(index, value) {

// console.log("index", index, "value", value);

//});

//var x = [];

//x.push(1);

//x[x.length] = 2;

//x // 1, 2

//var x = [0, 3, 1, 2];

//x.reverse() // [2, 1, 3, 0]

//x.join(" – ") // "<chsdate w:st="on" year="2002" month="1" day="3" islunardate="False" isrocdate="False">2 - 1 - 3</chsdate> - 0"

//x.pop() // [2, 1, 3]

//x.unshift(-1) // [-1, 2, 1, 3]

//x.shift() // [2, 1, 3]

//x.sort() // [1, 2, 3]

//x.splice(1, 2) // [2, 3]

////////////////////////////////////////////////////////////////////////////////////////

//![] // false

////////////////////////////////////////////////////////////////////////////////////////

//{'key[]':['valuea','valueb']}

//$_REQUEST['key'][0]="valuea"; //php

//$_REQUEST['key'][1]="valueb";

//params[:key] = ["valuea", "valueb"] //rails

////////////////////////////////////////////////////////////////////////////////////////

//function named() {}

//var handler = function() {}

//$(document).ready(function() {});

//$("a").click(function() {});

//$.ajax({

// url: "someurl.php",

// success: function() {}

//});

////////////////////////////////////////////////////////////////////////////////////////

//function log(x) {

// console.log(typeof x, arguments.length);

//}

//log(); // "undefined", 0

//log(1); // "number", 1

//log("1", "2", "3"); // "string", 3

////////////////////////////////////////////////////////////////////////////////////////

//$(document).ready(function() {

// // this refers to window.document

//});

//$("a").click(function() {

// // this refers to an anchor DOM element

//});

////////////////////////////////////////////////////////////////////////////////////////

//function scope() {

// console.log(this, arguments.length);

//}

//scope() // window, 0

//scope.call("foobar", [1,2]); // "foobar", 1

//scope.apply("foobar", [1,2]); // "foobar", 2

////////////////////////////////////////////////////////////////////////////////////////

// global

//var x = 0;

//(function() {

// private

//var x = 1;

//console.log(x); // 1

//})();

//console.log(x); // 0

////////////////////////////////////////////////////////////////////////////////////////

//function create() {

// var counter = 0;

// return {

// increment: function() {

// counter++;

// },

// print: function() {

// console.log(counter);

// }

// }

//}

//var c = create();

//c.increment();

//c.print(); // 1

////////////////////////////////////////////////////////////////////////////////////////

//(function() {

// // log all calls to setArray

// var proxied = jQuery.fn.setArray;

// jQuery.fn.setArray = function() {

// console.log(this, arguments);

// return proxied.apply(this, arguments);

// };

//})();

////////////////////////////////////////////////////////////////////////////////////////

//$("body").click(function(event) {

// console.log("clicked: " + event.target);

//});

////////////////////////////////////////////////////////////////////////////////////////

//$("#myform").submit(function() {

// return false;

//});

////////////////////////////////////////////////////////////////////////////////////////

//emailrules: {

// required: "#email:filled"

//}

////////////////////////////////////////////////////////////////////////////////////////

//$(":text").blur(function() {

// if(!this.value) {

// alert("Please enter some text!");

// }

//});

////////////////////////////////////////////////////////////////////////////////////////

});

</script>

</body>

</html>

分享到:
评论

相关推荐

    jquery_SWFUpload_COS上传组件的使用

    file_types: "*.jpg;*.png;*.gif", file_size_limit: "10 MB", flash_url: "path/to/swfupload.swf", button_image_url: "path/to/upload_button.png", button_width: 100, button_height: 26 }); ``` 3. *...

    Struts2,json,jquery_easyui项目框架

    Struts2 提供了丰富的拦截器(Interceptors)、结果类型(Result Types)和插件机制,使开发者能够灵活地处理请求、响应和业务逻辑。它还支持多种视图技术,如JSP、FreeMarker和Velocity,可以方便地与DAO(Data ...

    jquery_swfupload

    file_types_description : "Image Files", button_element : "uploadButton", debug: false }); swfu.addEventListener("fileQueued", fileQueuedHandler); swfu.addEventListener("fileDialogComplete", ...

    jquery多图片上传程序代码

    多张图片批量上传 var Setting={ debug:false, ... file_types_description : "文件类型",//文件格式描述 file_size_limit : "100 MB", // 文件大小限制 file_upload_limit : 5//上传文件总数 };

    Pro PHP and jQuery(Apress,2ed,2016)

    types=1) and the new available data types, scalar type declarations for function arguments and return statements, constant arrays using define(), argument unpacking with the ... operator, integer ...

    jquery+SWFUpload+COS上传组件的使用 兼容ie6

    file_types_description: "Image Files", file_size_limit: "2 MB", button_image_url: "button.png", button_width: 60, button_height: 20, button_text_left_padding: 5, button_text_top_padding: 2, ...

    php upload文件上传代码 jquery ajax无刷新

    在本例中,我们将使用一个jQuery插件,如`AjaxUpload`或者`jQuery Form Plugin`来处理文件上传。这些插件提供了友好的API,使我们能够方便地构建无刷新上传功能。 下面是一个基本的使用步骤: 1. **HTML结构**:...

    PHP jquery SWFUpload 实例

    file_types_description : "Image Files", flash_url : "swfupload.swf", button_image_url : "button.png", button_width : 69, button_height : 22, button_placeholder : $("#file_upload")[0] }); }); ...

    jquery导出word(支持图片导出)

    首先,创建一个ZIP文件,然后在其中添加一个名为`[Content_Types].xml`的文件,定义文档中不同类型的文件格式。接着,创建一个`word`文件夹,并在其中添加`document.xml`,这是Word文档的主要内容,将HTML内容插入到...

    php+jquery+ajax无刷新上传图片

    $allowed_file_types = array("jpg", "jpeg", "png", "gif"); // 检查文件类型 if(!in_array($imageFileType, $allowed_file_types)) { echo "只允许上传 JPG, JPEG, PNG & GIF 文件格式。"; $uploadOk = 0; } /...

    jquery上传插件uploadify+php完美实现强大的文件上传功能实例+程序

    Uploadify是基于jQuery的,这意味着你需要在项目中引入jQuery库才能使用它。该插件通过AJAX和Flash技术提供异步文件上传功能,允许用户在不刷新页面的情况下上传多个文件。它提供了丰富的配置选项,如设置上传文件...

    struts jquery

    3. **强大的结果类型(Result Types)**:提供了多种结果类型,如Redirect、Stream、Freemarker、JSP等,方便返回不同的视图。 4. **插件支持**:通过插件,Struts 2可以轻松集成其他框架,如Hibernate、iBatis等。...

    jquery mobile快速入门(含源码)

    同时,表单处理也是jQuery Mobile的重点,它支持多种输入类型(Input Types),如日期选择器(Datepickers)、地理定位(Geolocation)等,使得在移动设备上填写表单更为便捷。 jQuery Mobile还提供了丰富的API和...

    jQuery-3.3.1、JavaScript API中文文档

    2. **数据类型(Data Types)** - 包括基本类型(String, Number, Boolean, Null, Undefined, Symbol, BigInt)和引用类型(Object)。 3. **函数(Functions)** - 函数可以作为一等公民,可以赋值给变量,作为...

    jQuery jsTree大集合

    jsTree有许多内置插件,如`types`用于设置不同类型的节点,`state`用于记录节点状态,`ui`用于用户界面交互,`themeroller`用于自定义主题等。开发者也可以根据需求开发自定义插件。 **五、jsTree事件与API** js...

    jquery学习资料

    首先,`[Content_Types].xml`文件是用于定义压缩包内不同类型的文件如何被解析的元数据文件,它在Open Packaging Conventions(OPC)规范中起着关键作用。在jQuery的学习过程中,虽然直接操作这个文件不是主要任务,...

    Jquery与struts2

    **jQuery与Struts2整合详解** 在Web开发中,jQuery是一个强大的JavaScript库,它极大地简化了JavaScript的使用,使得前端交互更加便捷高效。而Struts2作为一款成熟的MVC框架,广泛应用于Java后端开发,提供了强大的...

    struts2+jquery实现ajax

    Struts2和jQuery是两种非常流行的开源框架,它们在Web开发中有着广泛的应用。Struts2作为MVC(Model-View-Controller)架构的一部分,主要用于处理控制器层的逻辑,而jQuery则是一个强大的JavaScript库,简化了DOM...

    jquery 上传

    mime_types: [{title: "Image files", extensions: "jpg,gif,png"}] }, ... }); uploader.init(); ``` 3. **FineUploader**:与Plupload类似,FineUploader也提供了一套完整的文件上传解决方案,它有丰富的...

    Struts2整合jquery利用json与后台交互

    整合Struts2和jQuery可以实现高效的前端与后端数据交互,尤其是通过JSON(JavaScript Object Notation)这种轻量级的数据交换格式,能够提升Web应用的性能和用户体验。 在Struts2中,我们可以创建一个Action类来...

Global site tag (gtag.js) - Google Analytics