在angularjs官方文档关于$routeProvider的配置中,对template和templateUrl的配置有这么一段话ifitisafunction,itwillbecalledwiththefollowingparameters:
{Array.<Object>}-routeparametersextractedfromthecurrent$location.path()byapplyingthecurrentroute读起来相..
分类:
Web程序 时间:
2015-12-24 00:45:15
阅读次数:
5070
13.检测鼠标的左键、右键 $(function(){ $('#XY').mousedown(function(e){ alert(e.which); // 1=左键,2=中键,3=右键 }) })14.回车提交表单$(function(){ ...
分类:
Web程序 时间:
2015-12-24 00:17:13
阅读次数:
225
从上一篇我们就大概就知道过滤器的定义和怎样去配置,这一节来说说执行流程 public function run($handlerAdapter = null) { $handlerAdapter !== null && $this->handlerAdapter = $handlerAdapter....
function mergeTableRows(tableName,colIdx){ tableObj=document.getElementById(tableName); var lastTdText=null; var rowLen=tableObj.rows.length;...
分类:
编程语言 时间:
2015-12-23 22:51:27
阅读次数:
269
今天学习了js数据类型的function,Object,Array1.function是object的一种,也是一种数据类型--可以存储在变量、数组、对象中,也可以作为参数传递到方法中去,这是一个比较新的概念,也是与java,c#中的函数概念不一样的地方(以前只知道js中的function可以执行某...
分类:
Web程序 时间:
2015-12-23 22:50:55
阅读次数:
297
古人学问无遗力,少壮工夫老始成。纸上得来终觉浅,绝知此事要躬行。一、简单示例代码: 1 function show(t) { 2 $("#content").html(t); 3 } 4 5 v...
分类:
其他好文 时间:
2015-12-23 22:49:34
阅读次数:
240
今天逛贴吧看到的,与自己预想的不同,于是在群里求解后方得知答案,遂记录之。代码来袭。function a(){ var i=1; i++; alert(i); //2 } var c = a(); c();function a(){ ...
分类:
其他好文 时间:
2015-12-23 21:24:28
阅读次数:
190
function hidden_edit(){ //隐藏编辑店员 $(".form-horizontal")[0].reset(); //重置的表单中 name值必须和数据库的name值相对应,在按返回键时,才能重置表单内容,如果某一项...
分类:
其他好文 时间:
2015-12-23 21:24:21
阅读次数:
223
做项目用到了这个东西,遂百度其方法,记录之。代码奉上随机生成n位数字:function randomNum(n){ //n为生成数字的位数 var t=''; for(var i=0;i<n;i++){ t+=Math.floor(Math.random()*1...
分类:
其他好文 时间:
2015-12-23 21:20:09
阅读次数:
180
Document 测试测试 在ready函数里这样写会弹出函数未找到如果写成这样:$(function(){ $("div").on("click", function(){ alert(123) ...
分类:
其他好文 时间:
2015-12-23 21:18:55
阅读次数:
199