码迷,mamicode.com
首页 >  
搜索关键字:python function    ( 188437个结果)
Uploadify在MVC中使用方法案例(一个视图多次上传单张图片)
Controller 中代码和 上一节文章(http://www.cnblogs.com/yechangzhong-826217795/p/3785842.html )一样视图中代码如下: $(function () { $(".uploadpic").each(function...
分类:Web程序   时间:2014-06-15 08:07:22    阅读次数:278
自已封装Ajax方法
function createXHR() { var request; if (typeof (XMLHttpRequest) == 'undefined') { request = new ActiveXObject('Microsoft.XMLHTTP'); } ...
分类:其他好文   时间:2014-06-15 07:58:05    阅读次数:196
多线程05-线程范围内共享变量
1.问题引入 多个业务模块针对同一个static变量的操作 要保证在不同线程中 各模块操作的是自身对应的变量对象例如:package org.lkl.thead;import java.util.Random;/** * 线程共享数据 * Function : * @author : Liaok.....
分类:编程语言   时间:2014-06-15 07:11:58    阅读次数:264
在JS中将指定表单内的“具有name数据的表单元素的值”封装为Get形式的字符串
//封装post时候,表单中所有具有name数据的表单元素的值,并返回“n=1&p=a”function serialize(formid) { var arr = []; var ipts = document.getElementById(formid).getElementsByT...
分类:Web程序   时间:2014-06-15 06:59:37    阅读次数:219
Python中关于try...finally的一些疑问
最近看Vamei的Python文章,其中一篇讲异常处理的,原本看完没啥疑惑,或许是自己想的简单了。看到评论,一个园友的问题引起我的兴趣。他的问题是def func(x): try: return ++x finally: return x+1print fun...
分类:编程语言   时间:2014-06-15 06:47:20    阅读次数:228
JS数组去重,js中数组(Array)的排序(sort)
JS数组去重var ddd = [1,2,4,5,2, 222,1,5,6];var uq = {};var rq = [];for(var i=0; ib?1:-1});//从小到大排序 alert(arrDemo);//10,50,51,100 arrDemo.sort(function(a,b...
分类:Web程序   时间:2014-06-15 06:28:54    阅读次数:286
关于在Python的注释不能用中文
在用中文进行注释的之后运行会有这样的提示:在文件头加上 #coding=utf-8这一行就可以用中文注释了
分类:编程语言   时间:2014-06-15 06:07:16    阅读次数:310
leetcode - Same Tree
题目:Same TreeGiven two binary trees, write a function to check if they are equal or not.Two binary trees are considered equal if they are structurally ...
分类:其他好文   时间:2014-06-15 00:53:09    阅读次数:314
js学习对象创建
Object.extend=function(destination, source) {for(varpropertyinsource) { destination[property]=source[property];}returndestination;}Prototype 对Object类进...
分类:Web程序   时间:2014-06-15 00:47:58    阅读次数:188
[leetcode]Add Two Numbers @ Python
原题地址:https://oj.leetcode.com/problems/add-two-numbers/题意:You are given two linked lists representing two non-negative numbers. The digits are stored i...
分类:编程语言   时间:2014-06-15 00:40:44    阅读次数:328
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!