在erb文件中,a页面与b页面都引用c页面,如果想在c页面里判断是哪一个页面调用了它就使用<%=params[:action]==“a”%>判断
分类:
其他好文 时间:
2014-05-09 07:12:39
阅读次数:
347
题目来源:BeginnersLabAssignmentsCodeExamplesAccessingPrivateDataMembersinC++.Thisisaflawinthelanguage/*
**Description:AccessingPrivateDataMembersinC++
**Date:2014-05-08
**Author:xyq
*/
#include<iostream>
#include<string>
usingnamespacestd;
clas..
分类:
编程语言 时间:
2014-05-09 06:58:48
阅读次数:
332
CSS里面background-repeat:no-repeat就不重复了<tdvalign="top"style="background-p_w_picpath:url(‘/user/mypage/live_1.jpg‘);height:29px;width:164px;background-repeat:no-repeat">
分类:
其他好文 时间:
2014-05-09 06:57:26
阅读次数:
252
<p><%=course=Course.find_by_id(params[:id])%></p>
分类:
数据库 时间:
2014-05-09 06:43:34
阅读次数:
320
数据库工具:SQLite Manager(V0.7.7)
SQLite版本:V3.6.19+
SQLite Manager 默认是不开启外键的。
那么如何,使用它创建一个带有外键的表呢?
一、开启外键支持
1. 打开“On-connect SQL Tab”
"Tools"->"Open...
分类:
数据库 时间:
2014-05-09 06:31:55
阅读次数:
463
Problem Description
在一个有12行12列的方形的武林世界里,少林、武当和峨嵋三派的弟子们在为独霸武林而互相厮杀。武林世界的第一行的一列格子的坐标是(1, 1),第一行第二列坐标是(1, 2)……右下角的坐标为(12, 12)。如图:
少林派弟子总是在同一列回不停地行走。先往下走,走到头不能再走时就往上走,再到头则又往下走……比如,(1, 1) -> (2, 1) -...
分类:
其他好文 时间:
2014-05-09 06:27:28
阅读次数:
379
<!--
知识点汇总:
1、Button与ImageButton的区别在于,Button生成的按钮上显示文字
而ImageButton上则显示图片。需要指出的是:为ImageButton按 钮指定
android:text属性没用(ImageButton的本质是ImageView),即使指定
了该属性,图片按钮上也不会显示任何文字
2、ImageButton 派生了一个ZoomButton ,...
分类:
移动开发 时间:
2014-05-09 06:26:01
阅读次数:
259
一、问题
用XCODE5新建工程,COPY老工程代码,编译出现以下错误:
ARC forbids explicit message send of 'release'
二、解决
工程-->"Build Settings"-->找到Objective-C Automatic Reference Counting项-->将它的值设置为NO。
再次编...
分类:
其他好文 时间:
2014-05-09 06:23:39
阅读次数:
285
const string &shorterString(const string
&s1, const string &s2){return s1.size() < s2.size() ? s1 : s2;}inline
const string &shorterString(const strin...
分类:
编程语言 时间:
2014-05-09 05:56:56
阅读次数:
300
keycode------------>KEYCODE_BACK,KEYCODE_MENUevent.getAction------->ACTION_DOWN,ACTION_UP,ACTION_MULTIPLE|_____onKeyUp,onKeyDown,onKeyLongPresshttp://...
分类:
其他好文 时间:
2014-05-09 05:47:01
阅读次数:
313