正在加载数据 //js代码var isShowNomore = false;$scope.scrollDragUp = function() { var currentTop = ionicScrollDel...
分类:
其他好文 时间:
2016-01-09 22:53:16
阅读次数:
164
show hide jQuery 中显示方法为:.show(),隐藏方法为:.hide()。在无参数的时候,只是硬性的显示内容和隐藏内容。$('.show').click(function () { //显示...
分类:
Web程序 时间:
2016-01-09 21:39:15
阅读次数:
187
function lua_union(union_source,union_target) if type(union_source)~='table' or type(union_target)~='table' then return {}; end; if #(...
分类:
编程语言 时间:
2016-01-09 21:27:10
阅读次数:
237
目录结构参数介绍/*** * Created by laixiangran on 2015/12/22. * karma单元测试配置文件 */module.exports = function(config) { config.set({ /*** * 基础路径,...
分类:
其他好文 时间:
2016-01-09 19:59:07
阅读次数:
173
angular.element(document.querySelector("#hotelAttach"))[0].innerText;angular.forEach(array, function(data,index,arrayCopy){ // array:需要遍历的集合 // ...
分类:
Web程序 时间:
2016-01-09 18:38:15
阅读次数:
119
Given an array of integers, find if the array contains any duplicates. Your function should return true if any value appears at least twice in the arr...
分类:
其他好文 时间:
2016-01-09 17:05:03
阅读次数:
142
如果在页面中重叠了多个元素,并且重叠在这些元素都绑定了同一个事件,那么就会出现冒泡问题(这些元素在一个div内或者一个盒子模型内)$('input').click(function(){ alert('input');})$('div').click(function(){ alert(...
分类:
Web程序 时间:
2016-01-09 17:04:24
阅读次数:
160
$('input').bind('click',function(e){ alert(e.type) //结果是click alert(typeof e.type) //返回的是字符串})target是获取触发元素的DOM,触发元素,就是你点了那个就是哪个...
分类:
Web程序 时间:
2016-01-09 16:45:21
阅读次数:
143
// 取当前页面名称(不带后缀名) function pageName() { var a = location.href; var b = a.split("/"); var c = b.slice(b.length-1, b.length).toString(String).split(".")...
分类:
Web程序 时间:
2016-01-09 15:07:47
阅读次数:
129
静态方法是指不需要声明类的实例就可以使用的方法。实例方法是指必须要先使用"new"关键字声明一个类的实例, 然后才可以通过此实例访问的方法。function staticClass() { }; //声明一个类staticClass.staticMethod = function() { alert...
分类:
Web程序 时间:
2016-01-09 12:33:38
阅读次数:
146