`
lxj8749
  • 浏览: 67193 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论
文章列表
$('#webchat_scroller').on('touchstart',function(e) { var touch = e.originalEvent.targetTouches[0]; var y = touch.pageY; }); $('#webchat_scroller').on('touchmove',function(e) { var touch = e.originalEvent.targetTouches[0]; var y = ...

ios等待动画

    博客分类:
  • ios
//初始化: UIActivityIndicatorView* indicator = [[UIActivityIndicatorView alloc] initWithFrame:CGRectMake(0, 0, 50, 50)]; //设置显示样式,见UIActivityIndicatorViewStyle的定义 indicator.activityIndicatorViewStyle = UIActivityIndicatorViewStyleWhiteLarge; //设置显示位置 [indicator setCenter:CGPointMake(self.frame ...

UIWebView 预加载

    博客分类:
  • ios
http://justcoding.iteye.com/blog/1535070

UIView 动画

    博客分类:
  • ios
frameboundscentertransformalphabackgroundColorcontentStretch 例如一个视图淡出屏幕,另外一个视图出现的代码 [UIView animateWithDuration:1.0 animations:^{ firstView.alpha = 0.0;  secondView.alpha = 1.0; }]; center = CGPointMake(self.view.frame.size.width/2, 240+10);     http://www.cnblogs.com/wendingding/p/3802830.ht ...
      实质上oc与js的通信交互就是发送消息,也即函数调用,只要在交互的过程正确的指定好对方需要调用的函数和参数就ok      oc-->js  stringByEvaluatingJavaScriptFromString,其参数是一NSString 字符串内容是js代码(这又可以是一个js函数、一句js代码或他们的组合),当js函数有返回值或一句js代码有值返回可通过stringByEvaluatingJavaScriptFromString的返回值获取    js-->oc 利用webView的重定向原理(即重新在js中指定document.location的值,此为一 ...

artDialog使用总结

操作打开的父窗口 artDialog.opener.location.reload(); artDialog.opener.$('.read').remove(); artDialog.opener.artDialog.close()   改变当前弹窗的内容 that.DOM.wrap.find(".aui_close").hide(); //隐藏关闭按钮   添加功能 在580行添加
在手机浏览器中,触屏拖动方块 <!DOCTYPE html><html><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="vie ...
固定在指定位置 position:fixed;  left:100px;  top:150px;  _position:absolute; _top:expression(documentElement.scrollTop + 150 + 'px');   固定在右下角  position:fixed; right:0; bottom:0;_position:absolute;_top:expression(documentElement.scrollTop + documentElement.clientHeight-this.offsetHeight);
很多网站都通过User-Agent来判断浏览器类型,如果是3G手机,显示手机页面内容,如果是普通浏览器,显示普通网页内容。  谷歌Chrome浏览器,可以很方便地用来当3G手机模拟器。在Windows的【开始】-->【运行】中输入以下命令,启动谷歌浏览器,即可模拟相应手机的浏览器去访问3G手机网页:  谷歌Android:chrome.exe --user-agent="Mozilla/5.0 (Linux; U; Android 2.2; en-us; Nexus One Build/FRF91) AppleWebKit/533.1 (KHTML, like Gecko) ...
在www.a.com域名里用js外部文件的方式加载www.b.com的文件, <script src=http://www.b.com/setcookie.php></script> 在b.com域名下的setcookie.php中写入cookie, 这里需要注意,在setcookie.php中一定要加入下面一句代码 header('P3P: CP="CURa ADMa DEVa PSAo PSDo OUR BUS UNI PUR INT DEM STA PRE COM NAV OTC NOI DSP COR"'); 否则ie就写不了co ...
if($("input[name='paytype']").is(":checked")){ alert('选中'); } 单选框值$("input[name='paytype']:checked").val();

jQuery插件开发

1、类级别的插件开发 如$.get(),$.post的函数 方式一: <script language="javascript"> jQuery.myFun1 = function() {      alert('This is a test. This is only a test.');    };    jQuery.myFun2 = function(param) {      alert('This function takes a parameter, which is "' + param + '".');    };  ...
安装redis shell> wget http://redis.googlecode.com/files/redis-2.0.4.tar.gz shell> tar zxvf redis-2.0.4.tar.gz shell> mv redis-2.0.4 redis shell> cd redis shell> make shell> redis-server 不要关 shell> redis-cli redis>set foo bar OK redis>get foo “bar” 安装phpredis模块 ...

F3-fatfree 简单使用

    博客分类:
  • php
index.php F3::route('GET /blog', 'blog->run');     app/blog.php class blog extends F3instance { function beforeroute() { } function run(){ $data=DB::sql("select * from admin_group"); $this->set("data",$data); print_r($data); } function a ...
   最近经常朋友要我帮做个公司小网站,要求很简单,只要介绍下公司的情况和产品就可以了。由于本人工作繁忙,每次有朋友要做就得重新弄一回,为了节省时间,做了该模板程序,给他们自己去修改就可以了。该程序或许也有其它人能用上,分享给大家,希望能帮你节省点时间或金钱。   演示地址:http://site.xfmama.cn/ 演示后台管理:http://site.xfmama.cn/admin.php 后台帐号:admin  密码:admin   使用教程 一、购买域名和虚拟空间     推荐购买“九二合租”的域名(平常说的网址:如http://www.abcxxx.com)和空间 ...
Global site tag (gtag.js) - Google Analytics