码迷,mamicode.com
首页 >  
搜索关键字:function    ( 54714个结果
轻松学习JavaScript二十二:DOM编程学习之节点操作
DOM编程不仅仅可以查找三种节点,也可以操作节点,那就是创建,插入,删除,替换和复制节点。先来看节点 操作方法:                 还是借用一贯的HTML代码: DOM编程 window.onload=function(){ } 你喜欢那个城市 北京市 天津市 上海市 ...
分类:编程语言   时间:2015-12-19 21:59:09    阅读次数:237
[LeetCode283]Move Zeros将一个数组中为0的元素移至数组末尾
题目:Given an arraynums, write a function to move all0's to the end of it while maintaining the relative order of the non-zero elements.For example, giv...
分类:编程语言   时间:2015-12-19 21:48:00    阅读次数:169
jquery easy ui combox
$(document).ready(function() { $.ajax({ type: 'POST', dataType: "json", url:'menu/getAll', succes...
分类:Web程序   时间:2015-12-19 19:17:59    阅读次数:249
EasyUI 二级联动
jQuery(function(){ // 省级 $('#province').combobox({ valueField:'itemvalue', //值字段 textField:'itemtext', //显示的字段 url:'/user/so...
分类:其他好文   时间:2015-12-19 19:16:48    阅读次数:217
JavaScript 代码小片段
获取对象 obj 的所有属性(自有属性和继承属性),保存到数组 lst 中 1 //获取对象obj的所有属性(自有属性和继承属性),保存到数组lst 中 2 var lst = []; 3 function getAllAttrs(obj){ 4 var arr = Object.getO...
分类:编程语言   时间:2015-12-19 17:47:55    阅读次数:218
transition的唧唧歪歪
transition是css3新出的一个属性,大白话叫做过渡。主要有下面这四个属性:transition-property、transition-duration、transition-timing-function、transition-delay(我做了四个预览效果,点击可查看)大白话分别是,需...
分类:其他好文   时间:2015-12-19 17:42:00    阅读次数:219
Bash函数使用
1 #!/bin/bash2 3 function Fun_Name()4 {5 #function here6 echo "this is a function"7 }8 9 Fun_Name
分类:其他好文   时间:2015-12-19 16:25:27    阅读次数:205
过生日,也要学学哈,这次是SHELL的GETOPTS
今天是WEBSOCKET,,先完成一个SHELL的GETOPS,周一就用得着。#!/bin/bashecho "usage: ./$0 -t (prism|opscripts)"function scp_prism(){ echo "scp_prism()"}function scp_opsc...
分类:系统相关   时间:2015-12-19 14:58:56    阅读次数:186
Learn in FCC(5)
第三章 jQuery没想到在讲js之前就先来个jQuery。1.$(document).ready(function(){});。2.$("button").addClass("animated bounce");给按钮加弹跳动作。jQuery可以给元素加class。Animate.css,原来cl...
分类:其他好文   时间:2015-12-19 14:57:53    阅读次数:143
jQuery面向对象的写法
定义的写法//构造函数function test(){ //construct code}//初始化方法test.prototype.init = function(){ //init code};//扩展方法test.prototype.expandFunc = function(){...
分类:Web程序   时间:2015-12-19 14:54:13    阅读次数:388
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!