2013年3月2日

python-cgi-apache

摘要: 步骤如下:1、配置httpd.conf :设置好CGI目录:ScriptAlias /cgi-bin/ "F:/web/cgi-bin/"配置如下:<Directory "F:/web/cgi-bin"> AllowOverride None Options FollowSymLinks +ExecCGI Order allow,deny Allow from all</Directory>添加CGI扩展名:(去掉注释)AddHandler cgi-script .cgi 2、在.py文件中必须加上#!G:/Python26/py 阅读全文

posted @ 2013-03-02 20:54 mtima 阅读(153) 评论(0) 推荐(0) 编辑

javascript--call--apply

摘要: function A() { this.message = '';}function B() { var message = ''; this.setMessage = function(msg) { this.message = msg; }; this.getMessage = function() { return this.message; };}var b = new B();var a = new A();b.setMessage('hello panda');b.setMessage.call(a, 'hello tiger 阅读全文

posted @ 2013-03-02 12:10 mtima 阅读(143) 评论(0) 推荐(0) 编辑

导航