jQuery_Types

本文介绍了JavaScript的基础操作技巧,如字符串处理、数值转换等,并通过实际案例展示了如何使用jQuery简化DOM操作,包括表单处理、AJAX请求等功能。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

版权声明:原创作品,允许转载,转载时请务必以超链接形式标明文章原始出版、作者信息和本声明。否则将追究法律责任。http://blog.youkuaiyun.com/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>

内容概要:《中文大模型基准测评2025年上半年报告》由SuperCLUE团队发布,详细评估了2025年上半年中文大模型的发展状况。报告涵盖了大模型的关键进展、国内外大模型全景图及差距、专项测评基准介绍等。通过SuperCLUE基准,对45个国内外代表性大模型进行了六大任务(数学推理、科学推理、代码生成、智能体Agent、精确指令遵循、幻觉控制)的综合测评。结果显示,海外模型如o3、o4-mini(high)在推理任务上表现突出,而国内模型如Doubao-Seed-1.6-thinking-250715在智能体Agent和幻觉控制任务上表现出色。此外,报告还分析了模型性价比、效能区间分布,并对代表性模型如Doubao-Seed-1.6-thinking-250715、DeepSeek-R1-0528、GLM-4.5等进行了详细介绍。整体来看,国内大模型在特定任务上已接近国际顶尖水平,但在综合推理能力上仍有提升空间。 适用人群:对大模型技术感兴趣的科研人员、工程师、产品经理及投资者。 使用场景及目标:①了解2025年上半年中文大模型的发展现状与趋势;②评估国内外大模型在不同任务上的表现差异;③为技术选型和性能优化提供参考依据。 其他说明:报告提供了详细的测评方法、评分标准及结果分析,确保评估的科学性和公正性。此外,SuperCLUE团队还发布了多个专项测评基准,涵盖多模态、文本、推理等多个领域,为业界提供全面的测评服务。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值