Just a little smile ^ ^

yoyo_zeng

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
  112 随笔 :: 3 文章 :: 0 评论 :: 10万 阅读

05 2013 档案

摘要:配置Factory bean that configures a VelocityEngine and provides it as bean reference. This bean is intended for any kind of usage of Velocity in application code, e.g. for generating email content. For web views, VelocityConfigurer is used to set up a VelocityEngine for views. <bean id="velocit 阅读全文
posted @ 2013-05-07 09:25 yoyo_zeng 编辑

摘要:IPA类 NHHH (0-126)(0-255)(0-255)(0-255) 126个网络,每个网络有256*256*256个主机B类 NNHH (128-191)(0-255)(0-255)(0-255) 64*256个网络,每个网络有256*256个主机C类 NNNH (192-222)(0-255)(0-255)(0-255) 31*256*256个网络,每个网络有256个主机 阅读全文
posted @ 2013-05-07 09:25 yoyo_zeng 编辑

摘要:if(){}elsif(){}else{}while(){}until(){}for(; ;){}foreach $word (@words) {if ($word eq "the") {print ("found the word 'the'\n");}}do {statement_block} while_or_until (condexpr);last: 与C中的break作用相同;next: 与C中的continue作用相同;redo: 重复此次循环,即循环变量不变,回到循环起始点,但要注意,redo命令在do循环中不起作用。go 阅读全文
posted @ 2013-05-07 09:24 yoyo_zeng 编辑

摘要:sql注入xss(插入恶意html)点击劫持(iframe透明)CSRF Cross-siterequestforgery跨站请求伪造 阅读全文
posted @ 2013-05-07 09:24 yoyo_zeng 编辑

摘要:package classname#构造函数sub new{#所谓对象其实是一个哈希表或者数组my $self = shift; bless $self, shift; #将self和类关联,告诉对象,你现在是shift类了,你可以使用shift类的方法了。return $self;}sub virtual_method{}1;对象以.pm文件结尾静态方法: 第一个参数为类名,虚方法: 第一个参数为对象的引用shift方法处理第一个参数的方式决定了它是静态的还是虚的。静态方法一般忽略掉第一个参数,因为它们已经知道自己在哪个类了,构造函数即静态方法。继承# parent classpacka.. 阅读全文
posted @ 2013-05-07 09:15 yoyo_zeng 编辑

摘要:$相当于C语言中指针的解析*, \相当于C语言中的取地址&数组, 以@开头 @array = (1, $var, "a string"); 列表()中可以为任何值,包括变量,可为不同类型, 同一个名字可以同时用于数组变量和简单变量 取值:$scalar = $array[0]; 对数组中的值通过下标存取,第一个元素下标为0。试图访问不存在的数组元素,则结果为NULL,但如果给超出数组大小的元素赋值,则数组自动增长,原来没有的元素值为NULL。 拷贝:@result = @original; 对变量赋值: @array = (5, 7, 11);($var1, $va 阅读全文
posted @ 2013-05-02 16:20 yoyo_zeng 编辑

摘要:标红为何C不同1 变量:$x = 12345; 弱类型语言可以支持 10+'20'2 8进制以0打头,16进制以0x打头。 例:$var1 = 047; (等于十进制的39) $var2 = 0x1f; (等于十进制的31) $number = 11; $text = "This text contains the number $number.";3 单引号和双引号区别: 1 单引号没有变量替换功能 2 反斜线只在包含单引号和反斜线时起作用 3 单引号可以跨多行 $text = 'This is two lines of text '; 与 阅读全文
posted @ 2013-05-02 16:00 yoyo_zeng 编辑

点击右上角即可分享
微信分享提示