一、基本语法1、"#"用来标识Velocity的脚本语句,包括#set、#if 、#else、#end、#foreach、#end、#iinclude、#parse、#macro等;如:#if($info.imgs)#else#end2、"$"用来标识一个对象(或理解为变量);如如:$i、$msg、...
分类:
其他好文 时间:
2014-10-23 19:04:35
阅读次数:
144
原文来自http://www.6excel.com/doc/20049一.电子表格中用到的快捷键:← → ↑ ↓ :左,右,上,下Home :当前行的第一列End:当前行的最后一列Shift+Home:表格的第一列Shift+End:表格的最后一列如图:代码如下: 创建在线excel电子表格 ...
分类:
Web程序 时间:
2014-10-23 19:02:17
阅读次数:
211
原文来自http://www.6excel.com/doc/20049 ?一.电子表格中用到的快捷键: ← → ↑ ↓? :左,右,上,下 Home :当前行的第一列 End??:当前行的最后一列 Shift+Home?:表格的第一列 ?Shift+End:表格的最后...
分类:
Web程序 时间:
2014-10-23 17:52:46
阅读次数:
264
简要:很多时候中奖用户并不希望让别人知道他的ID。程序中我们就将他们的账号部分设置为*号显示。
例如:王小二->王*二;
asadjsahd->a*********d;
代码:#include
#include
#define toStar(str,start,end) do{ for(int i=start;i<end;i++) { str[i] = '*...
分类:
编程语言 时间:
2014-10-23 16:27:18
阅读次数:
156
代码: #import?<Foundation/Foundation.h>
@interface?MyClass?:?NSObject
-?(void)?funcA;
-?(void)?funcAA;
+?(void)?funcA;
+?(void)?funcAA;
@end
@implementation?MyClass
-?(void)?f...
分类:
其他好文 时间:
2014-10-23 14:38:24
阅读次数:
193
触发器:一类特殊的事物,可监视某种数据操作,并触发相关操作(insert/update/delete);表中的某些数据改变,希望同时可以引起其它相关数据改变的需求。
作用:变化自动完成某些语句查询,添加程序的灵活性。
创建触发器语法:
#delimiter $$ //默认情况下,delimiter是分号“;”,sql语句带有;号结尾会报错,没到end就算到结束了,使用delimiter...
分类:
数据库 时间:
2014-10-23 14:36:28
阅读次数:
204
ViewController.m
#import "ViewController.h"
#import "Person.h"
@interface ViewController ()
@end
@implementation ViewController
//-------1、定义函数-----
//1、函数
int sum(int a,int b)
{
return a+b;
}...
分类:
其他好文 时间:
2014-10-23 14:30:23
阅读次数:
146
如何使用Mybaits调用数据库中的存储过程,下面以Oracle数据库的为例:
1.在数据库中创建以下的存储过程:
create or replace procedure pro_hello(p_result out varchar2) is
begin
select * from 表名 where 条件=p_result
end;
2....
分类:
其他好文 时间:
2014-10-23 12:33:43
阅读次数:
362
FIO14-C. Understand the difference between text mode and binary mode with file streamsSkip to end of metadataCreated byJustin Pincar, last modified by...
分类:
其他好文 时间:
2014-10-23 12:18:04
阅读次数:
243
create procedure [spname]([spvariable])asbeginbegin transactionbegin try--具体sql过程commit;end trybegin catchrollback;end catchend
分类:
数据库 时间:
2014-10-23 11:58:01
阅读次数:
207