码迷,mamicode.com
首页 >  
搜索关键字:function    ( 54714个结果
Python之路-python(装饰器、生成器、迭代器、Json & pickle 数据序列化、软件目录结构规范)
装饰器: 首先来认识一下python函数, 定义:本质是函数(功能是装饰其它函数),为其它函数添加附件功能 原则: 1、不能修改被装饰的函数的源代码。 2、不能修改被装饰的函数的调用方式。 <function test at 0x00595660>#表示的是函数的内存地址test#函数test执行结 ...
分类:编程语言   时间:2016-08-15 19:06:22    阅读次数:195
jquery ajax后台向前台传list 前台用jquery $.each遍历list
$.ajax({ type: 'post', url: xxx.action', dataType: 'text', success: function(data){ var dataObj=eval("("+data+")"); for(var i=0;i<dataObj.length;i++){ ...
分类:Web程序   时间:2016-08-15 18:57:58    阅读次数:183
placeholder兼容ie8
<script type="text/javascript"> if( !('placeholder' in document.createElement('input')) ){ $('input[placeholder],textarea[placeholder]').each(function ...
分类:其他好文   时间:2016-08-15 18:38:24    阅读次数:128
Object:String——regular function (updating)
String_ ...
分类:其他好文   时间:2016-08-15 17:25:10    阅读次数:160
[李景山php]每天laravel-20161012|Validator.php-12
/** *Gettheinlinemessageforaruleifitexists. * *@paramstring$attribute *@paramstring$lowerRule *@paramarray$source *@returnstring|null */ protectedfunctiongetInlineMessage($attribute,$lowerRule,$source=null) {//Gettheinlinemessageforaruleifitexists $source=$..
分类:Web程序   时间:2016-08-15 14:47:57    阅读次数:185
动态提交使用jQuery 完成ajax 文件下载----后端php
1、js代码 // Ajax 文件下载 //当不用传参时,可以将data去掉 jQuery.download = function(url, data, method){ // 获得url和data if( url && data ){ // data 是 string 或者 array/objec ...
分类:Web程序   时间:2016-08-15 14:26:20    阅读次数:140
让magento的validate验证hidden field
Object.extend(Validation, { isVisible : function(elm) { return true; }, insertAdvice : function(elm, advice){ // advice contains the div that would no ...
分类:其他好文   时间:2016-08-15 13:05:59    阅读次数:147
跨库查询问题.
在本地服务器测试的时候,我使用的是TP框架中的M方法.查询的时候 public function text(){ $mod = M('anta.user','store_'); $info = $mod->where("user_id=127")->select(); var_dump($info) ...
分类:其他好文   时间:2016-08-15 13:05:55    阅读次数:330
js收集的一些好的题型
①: var a = {x:1},b=a;var a = a.z = {Y:2}; 求a和b的值? ②: var w = (function a(){return '1'},function b(){return 2})() ; typeof w ③: var var f = function sx ...
分类:Web程序   时间:2016-08-15 12:55:32    阅读次数:164
在js中批量设置css样式
function css(target,styles){ for (var k in styles){ target.style[k]=styles[k]; } } 示例: var div = document.querySelector("div"); css(div,{width:300+"px ...
分类:Web程序   时间:2016-08-15 12:50:02    阅读次数:133
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!