控制器controller下的welcome.phppublicfunctiondoJson(){
$data=array(‘a‘,‘b‘,‘c‘,‘d‘);
if($_POST[‘k‘])
echo$data=json_encode($data);
}视图view下的json.php<!DOCTYPEHTML>
<html>
<head>
<scriptsrc="<?phpechobase_url();?>static/js/jqu..
分类:
Web程序 时间:
2014-07-29 15:57:59
阅读次数:
266
在做一个程序的时候,需要时刻保持某一服务是启动的,因此想到了通过监听屏幕SCREEN_ON和SCREEN_OFF这两个action。奇怪的是,这两个action只能通过代码的形式注册,才能被监听到,使用AndroidManifest.xml 完全监听不到。查了一下,发现这是PowerManager那...
分类:
其他好文 时间:
2014-07-29 10:55:16
阅读次数:
203
ScenesScenes in a storyboard represent content shown within one screen in your application. A scene involves a view controller and the views that make...
分类:
其他好文 时间:
2014-07-28 14:39:43
阅读次数:
334
1、基本概念屏幕大小(screen size) – 屏幕的实际大小,用屏幕对角线长度来衡量(比如3.4寸,3.8寸)。android把屏幕分为以下4种:small,normal,large,extra large。怎么判断?屏幕密度(Screen Density) - 一块实际的屏幕区域有多少个像....
分类:
移动开发 时间:
2014-07-28 14:31:23
阅读次数:
240
1.屏幕尺寸(screen size)就是我们平常讲的手机屏幕大小,是屏幕的对角线长度,一般讲的大小单位都是英寸。比如iPhone5S的屏幕尺寸是4英寸。Samsung Note3是5.7英寸。2.像素(pixel)想像把屏幕放大再放大,对!看到的那一个个小点或者小方块就是像素了。3.分辨率(Res...
分类:
移动开发 时间:
2014-07-28 11:19:50
阅读次数:
312
一、屏幕切换点击屏幕Screen1中的Button1按纽时,将打开屏幕Screen2,并传递参数startValue;屏幕Screen2中的接收参数并在标签Label1上显示。二、弹出选择对话框BackPressed事件:当按返回键时cancelable:表示是否出现“Cancel”按纽。choic...
分类:
其他好文 时间:
2014-07-27 23:24:41
阅读次数:
219
package com.kale.screen;import android.annotation.SuppressLint;import android.app.Activity;import android.graphics.Point;import android.os.Bundle;impo...
分类:
移动开发 时间:
2014-07-27 22:23:29
阅读次数:
196
Welcome to Git (version 1.9.4-preview20140611)Run 'git help git' to display the help index.Run 'git help ' to display help for specific commands.Tingk...
分类:
其他好文 时间:
2014-07-27 22:19:09
阅读次数:
189
不同的错误处理方法:
简单的die()语句自定义错误函数和错误触发器错误报告
基本的错误处理:使用die()函数
if(!file_exists("welcome.txt")){
die("FIle not found");
}else{
$file=fopen("welcome.txt","r");
}
或者
$file=fopen("web...
分类:
Web程序 时间:
2014-07-25 11:10:01
阅读次数:
243
1、GETName: Age: 当用户点击提交按钮时,发送的 URL 会类似这样:http://www.W3CSchool.cn/welcome.php?name=Peter&age=37"welcome.php" 文件现在可以通过 $_GET 变量来获取表单数据了。注释:在使用 $_GET 变量时...
分类:
其他好文 时间:
2014-07-25 10:51:51
阅读次数:
242