码迷,mamicode.com
首页 >  
搜索关键字:function    ( 54714个结果
【AngularJs】---JSONP跨域访问数据传输
myUrl = "http://localhost:8090/api/test?callback=JSON_CALLBACK";$http.jsonp(myUrl).success( function(data){ alert(data); });1.angularJS中使用$http.jsonp函 ...
分类:Web程序   时间:2016-08-11 11:27:23    阅读次数:170
IOS的一些坑
1.解决IOS safari在input focus弹出输入法时不支持position fixed的问题 $('input').focus(function(){ var _this = this; //无键盘时输入框到浏览器窗口顶部距离 var noInputViewHeight = $(wind ...
分类:移动开发   时间:2016-08-11 11:25:23    阅读次数:198
Js常用方法总结
/* 手机类型判断 */ <script> $(function(){ var BrowserInfo = { userAgent: navigator.userAgent.toLowerCase(), isAndroid: Boolean(navigator.userAgent.match(/an ...
分类:Web程序   时间:2016-08-11 11:19:01    阅读次数:146
网格补洞算法(Radial Basis Function)
在逆向工程中,由于设备或模型的原因,我们获取得到的三维模型数据往往并不完整,从而使得生成的网格模型存在孔洞,这对后续的模型分析会造成影响。下面介绍一种基于径向基函数(RBF:Radial Basis Function)的三角网格补洞方法。 Step 1:检测孔洞边界 三角网格是由一系列顶点(V)以及 ...
分类:编程语言   时间:2016-08-11 09:59:23    阅读次数:362
jquery操作滚动条滚动到指定位置
<html><head><script type="text/javascript" src="/jquery/jquery.js"></script><script type="text/javascript">$(document).ready(function(){ $(".btn1").cl ...
分类:Web程序   时间:2016-08-11 09:57:16    阅读次数:121
js中常用正则
/校验是否全由数字组成 ? 1 2 3 4 5 6 function isDigit(s) { var patrn=/^[0-9]{1,20}$/; if (!patrn.exec(s)) return false return true } ? 1 2 3 4 5 6 function isDig ...
分类:Web程序   时间:2016-08-11 07:28:43    阅读次数:447
你真的知道setTimeout是如何运行的吗
大家看下如下代码,猜猜执行结果: var start = new Date;setTimeout(function(){ console.log('时间流逝了:'+(new Date - start)+'毫秒');}, 200);while (new Date - start < 1000) {}c ...
分类:其他好文   时间:2016-08-11 06:22:01    阅读次数:171
JS动态创建元素
动态创建元素的三种方法: 第一种document.write("") document.write("<input type=‘text’> value='456'>"); 相当于创建了一个默认名是456的输入框 function f1(){ document.write("<input type= ...
分类:Web程序   时间:2016-08-11 01:02:02    阅读次数:158
指向构造函数的属性值
function Person(name , age , job){ this.name = name; this.age = age; this.job = job; this.sayName = function(){ alert(this.name); }; } var person1 = n ...
分类:其他好文   时间:2016-08-11 00:54:49    阅读次数:134
Object.prototype和Function.prototype一些常用方法
Object.prototype 方法: Function.prototype 方法: 1.apply call 用法:上下文调用模式,自定义设置this的含义 语法: 函数名.apply(对象,[参数]) 函数名.call(对象,参数) 描述: 函数名就是表示函数本身,使用函数进行调用的时候默认t ...
分类:其他好文   时间:2016-08-11 00:51:39    阅读次数:176
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!