码迷,mamicode.com
首页 >  
搜索关键字:function    ( 54714个结果
AngularJS自定义Directive与controller的交互
有时候,自定义的Directive中需要调用controller中的方法,即Directive与controller有一定的耦合度。比如有如下的一个controller:app.controller('MyCtrl',function($scope){ $scope.load = functio.....
分类:Web程序   时间:2015-12-28 23:32:32    阅读次数:238
20151227:Jquery
Jquery:就是封装好的JS带min的是压缩版的,不带min的就是正常的先建一个Script文件夹,把JQuery文件放到里面,把JQuery包引用到页面。 Jquery要求所有页面的内容加载完成之后再执行JQuery语法 $(document).ready(function(){ -...
分类:Web程序   时间:2015-12-28 22:02:15    阅读次数:221
bootstrap插件学习-bootstrap.carousel.js
先看bootstrap.carousel.js的结构var Carousel = function (element, options){} //构造器Carousel.prototype = {} // 构造器原型$.fn.carousel = function ( option ) {} //j...
分类:Web程序   时间:2015-12-28 21:51:30    阅读次数:238
JVM学习,堆和栈 —— What and where are the stack and heap?
The stack is the memory set aside as scratch space for a thread of execution. When a function is called, a block is reserved on the top of the stack f...
分类:其他好文   时间:2015-12-28 21:50:05    阅读次数:215
jqueryDOM加载方式
1. $(document).ready() 代替javascript中的window.onload方法$(document).ready(){ //jQuery中代替window.onload的方法};简写形式为:$(function(){ //这个大家应该比较熟悉哈 });$().re...
分类:Web程序   时间:2015-12-28 20:31:25    阅读次数:132
[PowerShell]HTML parsing -- get information from a website
link:http://stackoverflow.com/questions/9053573/powershell-html-parsing-get-information-from-a-website希望能从一个网页里获取一些信息function Get-FlightStatus { pa...
分类:Web程序   时间:2015-12-28 20:31:14    阅读次数:154
excel_VB宏脚本_批量生成点餐宝接受的格式
Attribute VB_Name = "模块1"'作者:landv'开发时间:2015年12月28日18:09:34'主要功能,为东风路小厨生成农行点餐宝所支持批量导入的格式。复制H行到TXT文本修改成UTF_8格式即可。Function pinyin(p As String) As String...
分类:其他好文   时间:2015-12-28 20:23:09    阅读次数:227
JS 字符串的 哈希值
在做一个小游戏的时候, 刚开始用了 随机数, 感觉很假, 输入姓名, 点击确定, 获取 随机数,现在用了 字符串的 哈希值, 不管在哪 输入, 输入多少次, 最终的结果都是一样的。因为 姓名 对应的 哈希值 是不变用姓名的哈希值 与 那个 数组 求余。//获取字符串的 哈希值 function ge...
分类:Web程序   时间:2015-12-28 20:21:55    阅读次数:256
函数节流
http://www.alloyteam.com/2012/11/javascript-throttle/#prettyPhoto function throttle(fn,delay){ var timer = null; console.log(this);//win...
分类:其他好文   时间:2015-12-28 20:08:31    阅读次数:197
input输入框的change事件
input输入框的change事件,要在input失去焦点的时候才会触发$(‘input[name=myInput]‘).change(function(){...});在输入框内容变化的时候不会触发change,当鼠标在其他地方点一下才会触发用下面的方法会生效,input$("#input_id").on(‘input‘,function(e){alert(‘Changed!‘)});
分类:其他好文   时间:2015-12-28 18:49:30    阅读次数:152
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!