- 博客(7)
- 收藏
- 关注
转载 Draw Pie
Ns.Chart.pie = function () { Ns.Chart.chartBase.apply(this, arguments); this.color = "#0ff11"; this.r = 200; this.cx = -1; this.cy = -1; this.marginX = 10; this...
2015-11-27 17:42:00 136
转载 js 继承
最近在编写一个js库采用的是面向对象的思想来进行编写,因此在js继承上有了一定的问题js继承有几种继承方式,分别为原型继承,类似继承,混合继承。原型继承: var child = function(){} var parent = function(){}child.prototype=new parent();//核心原型继承存在一...
2014-07-18 10:20:00 82
转载 namespace javascript ajaxform 功能以及客户端js自动验证
Ns.UI.AjaxForm = function () { Ns.UI.Control.apply(this, arguments); this.onError = null; this.onSuccess = null; this.onBeforSend = null; this.onComplete = null; ...
2014-07-17 14:55:00 79
转载 javascript 原生态实现ajaxform 包括客户端验证
Ns.UI.AjaxForm = function () { Ns.UI.Control.apply(this, arguments);//属于继承 this.onError = null; this.onSuccess = null; this.onBeforSend = null; this.onComplete = null; ...
2014-07-17 12:37:00 94
转载 jq 获取dom对象 HtmlXXXObject
jq是个很好的js库,但是对于一些要直接操作dom对象,所以需要得到dom对象 jq 里有个方法andSelf,可以获取jq选择的dom对象集合。。不管是否以ID选择还是以其他属性选中,jq始终是以集合的方式解决的。 var eles = $("#adwq").andSelf(); eles是个集合对象。也是dom的集合,这样就可以很好的利用dom解决一些jq不能...
2013-12-14 20:22:00 161
转载 Android-AlertDialog Button事件
近几天弄android自定义对话框的时候发现button点击事件触发不了,后面查了原来是AlertDialog会默认触发DialogInterface.OnClickListener事件,所以应在事件前面添加包名解决这个问题:android.view.View.OnClickListener; /** * 显示自定义的对话框 * * @param con...
2013-09-02 21:31:00 126
转载 android 基于http协议网络通信
一般是发送请求到某个应用服务器。此时需要用到HttpURLConnection 先取得HttpURLConnection urlConn = new URL("http://www.google.com").openConnection(); 设置标志 urlConn.setDoOutput(true); urlConn.setDoInput(true);...
2013-08-27 22:00:00 91
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人