把对象当参数传递给方法,在方法里改过对象后,影响到外面的对象
因为对象是引用传递过去的class Book { public $name; public function __construct($name) {
$this->name = (string)$n...
分类:
Web程序 时间:
2014-05-12 03:34:37
阅读次数:
386
在开发的过程中,我们经常要输出一下变量看看得到的结果是什么,我们就要根据变量的类型选择使用echo,print_r或者var_dump,brophp框架中的p()函数会自动根据变量类型选择用什么方法为我们输出变量,所以我收藏了
function p() { $args=func_...
分类:
其他好文 时间:
2014-05-12 02:59:51
阅读次数:
298
PPT:http://www.slideshare.net/DreamFactorySoftware/angularjs-and-rest-made-simpleblog:http://blog.dreamfactory.com/video:https://www.youtube.com/watch...
分类:
数据库 时间:
2014-05-12 01:50:59
阅读次数:
398
5高阶基本技术(Tricky Basics)本章涵盖实际编程之中层次较高的一些
template基本知识,包括关键词 typename的另一种用途、将member functio(n 成员函数)和 nested clas(s
嵌套类别)定为templates、奇特的 template templat...
分类:
其他好文 时间:
2014-05-12 01:11:03
阅读次数:
589
javascript解释器中存在一种变量声明被提升(hoisting)的机制,即变量(函数)的声明会被提升到作用域的最前面。即使把声明代码写在最后面。
alert(foo); //function foo(){} alert(bar); //undefined var bar = func...
分类:
编程语言 时间:
2014-05-12 00:42:19
阅读次数:
369
Option Explicit
Function stripHTML(strtext)
dim arysplit,i,j, strOutput
arysplit=split(strtext,"
if len(arysplit(0))>0 then j=1 else j=0
for i=j to ubound(arysplit)
if instr(arysplit(i),">") ...
分类:
其他好文 时间:
2014-05-11 21:56:06
阅读次数:
355
$(document).ready(function () { var
tag=$(".tags"); tag.mouseover(function(){
$(this).addClass("tagOn").siblings().removeClass("tagOn"); var index ...
分类:
Web程序 时间:
2014-05-11 18:22:45
阅读次数:
415
function getElementsByClassName(str,root,tag){
if(root){ root = typeof root == "string" ? document.getElementById(root) : root;
} els...
分类:
编程语言 时间:
2014-05-11 18:20:00
阅读次数:
316
C++语言的对象化模型.封装,隐藏内部实现.继承,复用现有代码.多态,改写对象行为本文描述了一个C++实现的继承和多态的场景,然后用C语言编写了一种对等的实现。//
A typical example of inheritance and virtual function use.// We wou...
分类:
编程语言 时间:
2014-05-11 18:03:47
阅读次数:
412
Unicorn - Admin TemplateUnicorn - Admin Template
是一款支持视网膜屏幕、完全响应式布局,可用于任何应用程序的管理模板。该面板适应任何宽度的设备。无论是智能手机、平板电脑或桌面浏览器都能完美适应。最新版本基于
Bootstrap 3 构建。使用LESS编...
分类:
Web程序 时间:
2014-05-11 15:17:35
阅读次数:
551