脚 本 之 家 www.jb51.net
页面导航:  不限条件-->输出
本地搜索:
[code]<?phpheader('Expires:Mon,26Jul199705:00:00GMT');header('Last-Modified:'.gmdate('D,dMYH:i:s').'GMT');header('Cache-Control:no-cache,must-revalidate');header('Pragma:no-cache');?>[/code]...
http://www.jb51.net//article/17035.htm
<html><head><title>b</title><scriptlanguage="javascript">functionA(){document.getElementById("divId").innerText="点了AAAAAAAAAAA";}functionB(){document.getElementById("divId").innerText="点了BBBBBBBBBB";}</script></head><body>现在页面没有遭到js的影响,很安静!<br>&l...
http://www.jb51.net//article/16661.htm
演示代码:[code]#!/usr/bin/envrubyCOUNT=10require'benchmark'$account_chars=('A'..'Z').to_a.delete_if{|c|c=~/[AEIOUY]/}#$password_chars=('0'..'9').to_a$password_chars=Array.new$password_chars[0..9]=('0'..'9').to_a$password_chars[10..36]=('A'..'Z').to_adefaccount_char$account_chars[rand($account_chars.leng...
http://www.jb51.net//article/16647.htm
[html]<script>vara="";for(vari=65;i<91;i++)a+=String.fromCharCode(i);alert(a);</script>[/html]...
http://www.jb51.net//article/16445.htm
一、定义文档类型、字符编码  Response.Clear();  Response.Buffer=true;  Response.Charset="utf-8";    //下面这行很重要,attachment参数表示作为附件下载,您可以改成online在线打开  //filename=FileFlow.xls指定输出文件的名称,注意其扩展名和指定文件类型相符,可以为:.doc  .xls  .txt  .htm    Response.AppendHeader("Content-Disposition","attachment;filename=FileFlow.xls");  Respo...
http://www.jb51.net//article/16444.htm
usingSystem;usingSystem.Data;usingSystem.Configuration;usingSystem.Web;usingSystem.Web.Security;usingSystem.Web.UI;usingSystem.Web.UI.WebControls;usingSystem.Web.UI.WebControls.WebParts;usingSystem.Web.UI.HtmlControls;usingSystem.Text;namespaceEC{///<summary>///信息输出通用方法///</summary>publi...
http://www.jb51.net//article/16422.htm
'定义变量Dimcn,rs,SqlSql="selectCustomerIDfromOrders"'记录总数DimTotalNumbeSetcn=Server.CreateObject("ADODB.Connection")cn.Open"Provider=SQLOLEDB.1;UserID=sa;InitialCatalog=NorthWind;DataSource=.;Password=;"Setrs=Server.CreateObject("ADODB.Recordset")rs.OpenSql,cn,3,1TotalNumber=rs.RecordCountIfTotalNumber=...
http://www.jb51.net//article/16365.htm
<?phpfor($i=10;$i>0;$i--){echo$i;flush();sleep(1);}?>按照php手册里的说法该函数将当前为止程序的所有输出发送到用户的浏览器。上面的这段代码,应该隔一秒钟输出一次$i。但是实际中却不一定是这样。有可能是等了10秒钟后,所有的输出同时呈现出来。好,我们来改一下这段代码,改成<?phpob_end_clean();//修改部分for($i=10;$i>0;$i--){echo$i;flush();sleep(1);}?>嘿,加了这一句ob_end_clean();,居然就OK了。实际上,我们把ob_end_cl...
http://www.jb51.net//article/16215.htm
//实时显示输出ob_end_flush();//关闭缓存//echostr_repeat(" ",256);//ie下需要先发送256个字节set_time_limit(0);for($i=0;$i<10;$i++){echo"NowIndexis:".$i."<br>";flush();sleep(1);}...
http://www.jb51.net//article/16050.htm
看下面的例子就会明白了:[code]print'|','*'.ljust(10),'|'print'|','*'.ljust(10,'-'),'|'print'|','*'.rjust(10,'-'),'|'print'|','*'.center(10,'-'),'|'forainrange(1,6):print'a='.ljust(5),repr(a).ljust(10),'b='.ljust(5),repr(a*2)[/code]输出结果:|*||*---------||---------*||----*-----|a=1b=2a=2b=4a=3b=6a=4b=8a=5b=10...
http://www.jb51.net//article/15697.htm
经过大鸟哥的指导已做全面的修改,本人能力有限只能做到下面这步了:ASP/Visual Basic代码 [code]<%         Const p=6 '每页2条         set rs = server.createobject("adodb.recordset")     &nb...
http://www.jb51.net//article/15271.htm
共有:60/10,当前1/6页  [首页] [上一页] 1 2 3 4 5 6 [下一页]  [尾页] 转到: