typedef 定义自定义类型,即为现有类型创建一个新的名字有助于创建平台无关类型,
隐藏复杂、难以理解的语法,即美化代码举例:1.template class A { typedef T value_type; ... };2.typedef
struct _Node int ...
分类:
其他好文 时间:
2014-05-20 00:28:58
阅读次数:
331
1.切换目录git checkout step-12npm
start2.效果图这里在点击右边的缩略图时,会有一个很明显的从下向上的动画过程.3.代码实现:step11和step12之间的代码差异:https://github.com/angular/angular-phonecat/compare...
分类:
移动开发 时间:
2014-05-19 23:43:00
阅读次数:
695
/* * Object factory */function
objectFactory(jsonObj){ function objectEntity(){ } if(typeof jsonObj ==
"object"){ for(var index in jsonObj){ objectEnt...
分类:
Web程序 时间:
2014-05-19 22:39:02
阅读次数:
472
NicEdit - WYSIWYG Content Editor, Inline Rich
Text ApplicationBy calling the nicEditors.allTextareas() function the below
example replaces all 3 texta...
分类:
移动开发 时间:
2014-05-19 22:22:52
阅读次数:
320
数据类型:undefined、null、boolean、string、number、复杂数据类型object
共六种typeof:undefined、object、boolean、string、number、function 六种console.log(typeof
null); //objec.....
分类:
编程语言 时间:
2014-05-19 21:52:31
阅读次数:
400
AngularJS DirectivesDirectivesare one of the
most powerful ofAngularJS. They allow us to extend HTML to answer the needs of
web applications. Directiv...
分类:
Web程序 时间:
2014-05-17 15:26:40
阅读次数:
436
封装一个增删改查的函数: 1 <?php 2 3 //编写数据库操作的魔术函数 4
function mysql_bind(){ 5 6 //首先我们不知道外面会传入多少个参数 7
//可以用func_get_args()方法来获取全部传入参数,这个方法返回全部参数的数组 8 ...
分类:
Web程序 时间:
2014-05-17 14:40:42
阅读次数:
332
加载外部的3DS文件分为两种: 1: 模型与贴图独立于程序的,也就是从外部的文件夹中读取 1
private function load3DSFile():Loader3D2 {3 loader = new Loader3D();4 ...
分类:
其他好文 时间:
2014-05-17 14:34:54
阅读次数:
277
封装函数(增,删,查,改)步骤:function 页面 //编写数据库操作的魔术函数
function mysql_bind(){ //首先我们不知道外面会传入多少个参数
//可以用func_get_args()方法来获取全部传入参数,这个方法返回全部参数的数组 //和func_get_ar...
分类:
其他好文 时间:
2014-05-17 14:29:01
阅读次数:
326
遇到一个这样的问题:
有个项目做的好好的,测试时一步一步小心过来,做了一段时间后,发现前面的完成的功能出了问题了
首先描述下出问题的功能:做滚动条下拉加载的时候用的网上找的一种方法$(window).scroll(function(){
if($(document).scrollTop...