1、在view中use yii\helpers\Html;//这里***代表你的目录名或者文件名 //***同上2、布局public $layout = 'layout';//在类中定义一个变量,名为$layout的php文件3、跳转链接use yii\helpers\Url;//post为你的当前...
分类:
Web程序 时间:
2015-08-20 23:50:00
阅读次数:
217
数据库常用命令1、Help查看命令提示helpdb.help();db.yourColl.help();db.youColl.find().help();rs.help();2、切换/创建数据库use yourDB; 当创建一个集合(table)的时候会自动创建当前数据库3、查询所有数据库show ...
分类:
数据库 时间:
2015-08-20 20:21:41
阅读次数:
148
输入命令:lianxumacdeMac-mini-2:hello-jni lianxumac$ android list targetsAvailable Android targets:----------id: 1 or "android-7" Name: Android 2.1 Type:.....
分类:
移动开发 时间:
2015-08-20 18:28:17
阅读次数:
144
#-*-coding:utf-8-*-
__author__=‘Administrator‘
importMySQLdb
importpprint
importsys
reload(sys)
sys.setdefaultencoding(‘utf8‘)
#help(MySQLdb)
s=MySQLdb.connect(host=‘192.168.2.19‘,user=‘scafane‘,passwd=‘vesill‘,db=‘scppn‘,port=3306,use_unicode=True,charset=..
分类:
数据库 时间:
2015-08-20 15:32:27
阅读次数:
157
Item 3: Use const whenever possible
尽量使用常量。不需多说,这是防卫型(defensive)程序设计的原则, 尽量使用常量限定符,从而防止客户错误地使用你的代码。
常量的声明
总结一下各种指针的声明方式吧:
char greeting[] = "Hello";
char *p = greeting; ...
分类:
编程语言 时间:
2015-08-20 15:24:53
阅读次数:
192
一、Android Studio配置SVN
Android Studio关联配置SVN很简单,在Settings里面,找到Version Control->Subversion;在这个页面的控制面板中的General中将Use command line client打勾勾选上,然后浏览本地的SVN安装目录,选到"\svn.exe"即可;
在Use command line client下面...
分类:
移动开发 时间:
2015-08-20 13:12:12
阅读次数:
2226
用margin还是用padding这个问题是每个学习CSS进阶时的必经之路。分类:Html/CSS| 转载请注明: 出自海玉的博客本文地址:http://www.hicss.net/use-margin-or-padding/CSS边距属性定义元素周围的空间。通过使用单独的属性,可以对上、右、下、左...
分类:
其他好文 时间:
2015-08-20 12:04:54
阅读次数:
86
SQL其次是独特的一套所谓的语法规则和准则。本教程为您提供了一个快速入门使用SQL列出所有的基本SQL语法:所有SQL语句开始以类似关键字SELECT,INSERT,UPDATE,DELETE,ALTER,DROP,CREATE,USE,SHOW并且所有的语句用分号(;)结束。重要的一点要注意的是,MySQL是不区分大小写的,这..
分类:
数据库 时间:
2015-08-20 10:49:26
阅读次数:
225
The Bottom of a Graph
Time Limit: 3000MS
Memory Limit: 65536K
Total Submissions: 9575
Accepted: 3984
Description
We will use the following (standard) definitions fr...
分类:
其他好文 时间:
2015-08-20 10:35:25
阅读次数:
131
private Vector3 lastPos = Vector3.zero;private bool isTouch;// Use this for initializationvoid Start () {}// Update is called once per framevoid Updat...
分类:
移动开发 时间:
2015-08-20 10:21:27
阅读次数:
260