Tags » 技术笔记

禁止手机缩放代码

    <meta content="width=device-width, 
initial-scale=1.0, maximum-scale=1.0, user-scalable=0;" name="viewport" />

禁止手机页面缩放代码,放在head标签里

$.ajaxFileUpload 不进success,前面加domain这一句

document.domain = 'localhost';        
$.ajaxFileUpload(            {                
url: "<?php echo base_url('index.php/Niche/do_upload')?>", //用于文件上传的服务器端请求地址                
secureuri: false, //是否需要安全协议,一般设置为false                
fileElementId:   "images", //文件上传域的ID                
dataType: 'json', //返回值类型 一般设置为json                
success: function (data)  //服务器成功响应处理函数                
{
//                    $("#img1").attr("src", data.imgurl);
//                    if (typeof (data.error) != 'undefined') {
//                        if (data.error != '') {
//                            alert(data.error);
//                        } else {
//                            alert(data.msg);
//                        }
//                    }                    alert('图片上传成功');                
},                error: function (data, e)//服务器响应失败处理函数                
{                    alert(e);                }            }        )
技术笔记

GRIFF's Prayer: Love For The Losers [EXCLUSIVE AUDIO]

In this edition of GRIFF’s Prayer, GRIFF is dealing with some questions he has about the Olympics. After watching Michael Phelps land a major win for the USA, he wondered about all of the athletes who made it all the way to the Olympics this year but didn’t win. 148 more words

Get Up!

Auto Layout on Android, A Pure Java Implementation

If you are familiar with IOS development, Auto Layout probably is not something new to you. But for those pure android geeks and others who are interested: “Auto Layout is a system that lets you lay out your app’s user interface by creating a mathematical description of the relationships between the elements. 444 more words

技术笔记