上一页 1 ··· 7 8 9 10 11 12 13 14 15 下一页
摘要: 注:从本人以前的51CTO的BLOG转过来~用Adobe Flash Builder 4 来编译 下载Adobe Flash Builder 4 打开(下载链接)http://developer.longtailvideo.com/trac/changeset/1179/tags/mediaplayer-5.2.rc1?old_path=%2F&format=zip下载并把压缩文件里的tags/mediaplayer-5.2.rc1并解压到 d:/jwplayer目录 打开Adobe Flash Builder 4 建立一个名为jwplayer的AS 工程,工程目录为d:/jwplayer 在 阅读全文
posted @ 2010-12-06 11:26 liushan 阅读(2827) 评论(2) 推荐(0)
摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--?php/***把二维表分解成多级数组,做菜单时常用*(可用于无线分级菜单,无限级留言)*@authorLonely(从以前BLOG转过来的)*|----------------------|*|id|parentId|value|*|----------------------|*parentId存id的值,表示该项的父项是id为该项parentId的值的那个记录*如上表:parentId为父 阅读全文
posted @ 2010-12-06 11:11 liushan 阅读(1160) 评论(0) 推荐(2)
摘要: jquery ui 的 dialog 在IE8下会出现不该出现的滚动条,在JQUI的FORUM上SEARCH下,发现也有人碰上,当解决办法就是把滚动条隐藏,非常不满意..此问题在UI1.7就出现,到了UI1.8也未修复,真不知道该怎么说好.. JQUI 开发提交BUG的帖子:http://dev.jqueryui.com/ticket/3623解决办法相当不科学~ 我的解决办法,个人感觉好过那个,因为我只隐藏横的滚动条,呵呵 附上修改的代码: 修改:jquery.ui.dialog.js代码Code highlighting produced by Actipro CodeHighlighte 阅读全文
posted @ 2010-12-06 10:58 liushan 阅读(854) 评论(0) 推荐(0)
摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--htmlheadtitle/title/headbodydivid="contentq"onclick="bb(event)"!--显示传入event对象--fasdf/div/bodyscripttype="text/javascript"functionbb(e){alert(e);}varcontainer=document.getElementB 阅读全文
posted @ 2010-12-06 00:55 liushan 阅读(300) 评论(0) 推荐(0)
摘要: 在一个类中,如果一个声明为静态的属性或方法,将影响的是全局性的,就是说该属性或方法是对类而言的,而不是对对象而言,对象是对类的实现,如果是对类而言,当类里面的东西改变,将影响所有的对象,(不管是该对象是在改类改变前生成的还是该类改变后生成,因为类里面静态的属性或方法的指针都指向同一块内存地址,如果上面的讲述理由还有困难,请看下面的代码)PHP版:代码 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->classa{publicstatic$c= 阅读全文
posted @ 2010-11-22 10:04 liushan 阅读(343) 评论(0) 推荐(0)
摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--<?phpclassa{publicfunctionc($id){echo$id;}}classbextendsa{publicfunctionc($id,$ic){parent::c($id)... 阅读全文
posted @ 2010-11-12 12:25 liushan 阅读(288) 评论(0) 推荐(0)
摘要: (已过时,请勿使用.建议用openssl扩展,私钥-公钥每次请求时候即时生成,私钥存放于SESSION或数据库等,公钥返回客户端.防止重放攻击,否则加密没有意义.)JS端代码://文件base64.js:var b64map="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";var b64pad="=";function hex2b64(h) { var i; var c; var ret = ""; for(i = 0; i+3 <= h.le 阅读全文
posted @ 2010-11-12 01:12 liushan 阅读(4139) 评论(10) 推荐(2)
摘要: & 取址 * 取值#include “filename.h”是指编译器将从当前工作目录上开始查找此文件#include 是指编译器将从标准库目录中开始查找此文件#define PI 3.14159265 /*定义宏*/#define S(a,b) a+b;/*定义宏*/const int width = 100;定义类型常量Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->Char*func(void){charstr[]=”Hello 阅读全文
posted @ 2010-11-08 13:55 liushan 阅读(250) 评论(1) 推荐(0)
摘要: 如果有多个接口有一个相同的方法名,且不是继承出来的,PHP是不允许的如下实例:interface a{  public function x();}interface b{  public function x();}class c implements a,b{  public function x();}报如下错误:Can't inherit abstract function b::x() ... 阅读全文
posted @ 2010-11-06 09:50 liushan 阅读(617) 评论(0) 推荐(0)
摘要: 先明确一点,以下部分涉及到function对象和object对象.当有一个方法或对象,想给另一个方法使用,可以使用以下的方法,按照这个原理实现JS的继承(可以实现多个父类继承,很多语言都做不到,JS强吧.)阅读前需要理解的:JS中 没有new 的对象在对象里的this是不存在的例如:function a(){ this.b="hi"; this.c=function(){alert('hi');}}alert(a.b);//out undefinedtry{a.c();}catch(e){ alert(e->getmessage());//有输出}va 阅读全文
posted @ 2010-10-28 23:51 liushan 阅读(465) 评论(1) 推荐(1)
上一页 1 ··· 7 8 9 10 11 12 13 14 15 下一页