- 浏览: 58829 次
- 性别:
- 来自: 重庆
文章分类
最新评论
记录下,免得又忘记了
var defaultValue={name:"张三"}; with(defaultValue){ alert(name); } //做纯js循环给元素添加事件的时候可以用 for(var i=0;i<5;i++){ with({i:i}){ x.onclick=fnction(){ alert(i); } } } //第二种方法是这个,使用匿名函数(我也不知道这个的叫法是什么) for(var i=0;i<ada.length;i++){ (function(x){ ada[i].onclick=function(){ alert(x); } })(i); }
发表评论
-
js this
2013-10-24 16:06 563js里this是指向的调用的引用对象 function t ... -
JS作用域
2013-10-24 14:11 559首先js是没有块级作用 ... -
JS变量随便写写
2013-10-21 11:54 792一般来说js全局变量分 ... -
js ++ --
2013-10-18 15:57 586前置++和--是马上执行运算 后置++和--简单点说就是当下一 ... -
关于闭包,自己理解的
2013-10-17 14:09 805其实一直没搞懂闭包啥 ... -
连续定义方法
2013-10-16 18:07 632var newFunc={}; var strs=" ... -
Myeclipse的jquery插件jqueryWTP安装
2013-10-12 22:05 781下载插件 jqueryWTP1.20foCN.jar 地址: ... -
aptana3安装jquery插件的两种方式
2013-10-12 11:29 1002总结了下貌似现在只有两种,其实都是用的同一个jquery开发插 ... -
jQuery的.bind()、.live()和.delegate()之间区别
2013-10-11 14:59 593原文:The Difference Between ... -
通过JS函数自动获取表单元素值的方法(转)
2013-09-16 17:26 999做ajax提交懒得组合字符串,在网上找有没自动获取表单方法,找 ... -
jquery小东西记录(3)-选择器,通配符等
2013-08-13 11:24 6101.选择器 (1)通配符: $("input ... -
javascript小东西记录
2013-07-05 17:45 699onload几种方式 window.onload=XXXX;( ... -
jquery小东西记录(2) --jquery和dom对象转换
2013-07-05 11:37 596jQuery对象转成DOM对象: 两种转换方式将一个jQue ... -
js简单的表格操作
2013-06-21 15:43 1168好久没写表格操作全忘了,看别人的看不懂,所以只有自己写个,没有 ... -
慢慢收集javascript的使用方法
2013-06-06 11:22 704子窗体改变父窗体值 parent.document.getEl ... -
jquery小东西记录(1)
2013-05-12 23:45 791$(function(){}); $(document).r ... -
select标签的操作
2010-05-20 15:33 927功能为:添加 批量添加 删除 选定后背景变色 删除后背景色变回 ... -
主副窗口传值
2009-07-14 17:19 868主窗体 <html> <head&g ... -
javascript:无聊时写的一个自动获取json值并自动生成表格,可设置表格的列标题与要表现json值的位置
2009-07-12 14:50 2143function test(){ var file ...
相关推荐
Focusing on implementation rather than theory, 'Statistical Computing with R' serves as a valuable tutorial, providing examples that illustrate programming concepts in the context of practical ...
with the Invariant Sections being “Free Software” and “Free Software Needs Free Documentation”, with the Front-Cover Texts being “A GNU Manual,” and with the Back-Cover Texts as in (a) below. ...
根据提供的信息,我们可以总结并详细解释与“debugging_with_gdb(中文版pdf)”相关的知识点。这份文档似乎是一份关于使用 GDB(GNU Debugger)进行调试的手册或指南的中文版 PDF 文件。GDB 是一个非常强大的开源调试...
Mobile App Development with Ionic 2: Cross-Platform Apps with Ionic, Angular, and Cordova by Chris Griffith English | 10 Apr. 2017 | ASIN: B06Y5Q24B2 | 310 Pages | AZW3 | 2.93 MB Learn how to build ...
Working code and data for Python solutions for each test, together with easy-to-follow Python examples, can be reproduced by the reader and reinforce their immediate understanding of the topic. With ...
实际上,Python 提供了 with 语句来管理资源关闭。比如可以把打开的文件放在 with 语句中,这样 with 语句就会帮我们自动关闭文件。 with 语句的语法格式如下: with context expression [as target(s)]: with ...
Mastering Text Mining with R English | 5 Jan. 2017 | ISBN: 178355181X | 258 Pages | AZW3/MOBI/EPUB/PDF (conv) | 24.8 MB Key Features Develop all the relevant skills for building text-mining apps ...
CVPR 2022 Image Dehazing Transformer with Transmission-Aware 3D Position Embedding 源代码,很有学习价值,大佬任文琦团队的最新去雾杰作,从3D定位的角度去思考去雾。CVPR 2022 Image Dehazing Transformer ...
苹果登录Sign in with Apple官方英文文档 Sign in with Apple是苹果公司在2019年WWDC大会上发布的一项新产品,旨在提供一种安全、简洁的登录方式。苹果公司要求,从iOS 13开始,任何新应用程序都必须提供Sign in ...
computer vision with enough understanding of the underlying theory and algorithms to be a foundation for students, researchers, and enthusiasts. The Python programming language, the language choice of...
【MSDN原版】Windows 7 with SP1各版本下载 Windows 7 Ultimate with Service Pack 1简体中文旗舰版: Windows 7 Ultimate with Service Pack 1 (x86) - DVD (Chinese-Simplified) : 下载地址(以下下载地址请右击...
firstly, we focus on detailed coverage of deep learning (DL) and transfer learning, comparing and contrasting the two with easy-to-follow concepts and examples. The second area of focus is real-world...
Title: Applied Numerical Methods with MATLAB for Engineers and Scientists, 4th Edition Author: Steven Chapra Length: 720 pages Edition: 4 Language: English Publisher: McGraw-Hill Education Publication...
Manning出版 Java Persistence With Hibernate 第二版 清晰pdf Hibernate, an open source project that is almost 15 years old. In a recent poll, Hibernate was among the top five tools used by many Java ...