上一页 1 ··· 8 9 10 11 12 13 14 下一页
摘要: 其实就是把AllowScriptAccess="sameDomain"改为AllowScriptAccess="always"如下(6、12行,都必要) 1object2classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"3codebase="http://fpdownload.adobe.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"4width="550"height="400"align="middle"5paramname="movie"value="http: 阅读全文
posted @ 2010-09-09 21:26 再快一点 阅读(639) 评论(0) 推荐(1) 编辑
摘要: http://blog.chinaunix.net/u1/37000/showart_338364.html// C语言读写文件.cpp : 定义控制台应用程序的入口点。//#include "stdio.h"#include "string.h"void write(){ FILE *fp; //只写打开或建立一个文本文件,只允许写数据 fp=fopen("D:\\c.txt","wt"); if(fp!=NULL) { char *str="C语言创建txt"; //fputs(str,fp); fwrite(str,strlen(str),1,fp); } //fflush(fp) 阅读全文
posted @ 2010-09-03 18:04 再快一点 阅读(230) 评论(0) 推荐(0) 编辑
摘要: #include "stdio.h"#include "malloc.h"struct Student{ int id; char *name; };void errorFun(){ struct Student arr[5]; struct Student *parr[5]; for(int i=0;i5;i++) { struct Student stu; stu.id=i; stu.name="wq"; arr[i]=stu; parr[i]=&stu; }}void main(){ errorFun(); } 阅读全文
posted @ 2010-09-03 13:30 再快一点 阅读(182) 评论(0) 推荐(0) 编辑
摘要: // 分配内存空间.cpp : 定义控制台应用程序的入口点。//#include "stdio.h"#include "malloc.h"struct Student{ int id; char *name; int score; struct Student *next;};void errorFun(){ struct Student stu={1,"wq",99}; struct Student *head,*s1; for(int i=0;i3;i++) { //这一句,只在第一次执行的时候给s分配了内存地址,第一次以后执行都是用相同的内存地址,也就是说从第一次循环过后每次都是给同一 阅读全文
posted @ 2010-09-02 23:58 再快一点 阅读(4072) 评论(0) 推荐(0) 编辑
摘要: // 指针.cpp : 定义控制台应用程序的入口点。//#include "stdio.h"void main(){ int a[3][3]={{1,2,3},{4,5,6},{7,8,9}}; //a[i],*(a+i)和a+i,&a[i] printf("*a[i]为:%d\n",*a[0]); printf("**(a+i)为:%d\n",**(a+0)); printf("**a为:%d\n",**a); printf("a为:%d,a[0]为:%d,*a为:%d,&a为:%d\n",a,a[0],*a,&a); printf("***(&a)为:%d\n",***(&a)); / 阅读全文
posted @ 2010-08-13 14:51 再快一点 阅读(159) 评论(0) 推荐(0) 编辑
摘要: class Program { static void Main(string[] args) { //可以不用在方法名后传入类型 MyClass.Fun(123); //必须要在方法名后传入一个类型 MyClass.Fun2int(); } } class MyClass { public static void FunT(T item) { Console.WriteLine("wq"); } public static void Fun2T() { Console.WriteLine("ly"); } } 阅读全文
posted @ 2010-08-12 18:38 再快一点 阅读(249) 评论(0) 推荐(1) 编辑
摘要: var arr=eval("[1,2,5]"); alert(arr[2]) /*有效 var mm={"age":99}; alert(mm.age); */ /*有效 eval('var mm={age:123}'); alert(mm.age); */ /*有效,属性名可以不加引号,但是一定要在字符串最外面加上 ( ) var mm= eval("({age:66,name:\"mxw\"})"); alert(mm.name)*/ 阅读全文
posted @ 2010-08-12 16:54 再快一点 阅读(353) 评论(0) 推荐(1) 编辑
摘要: replace() 方法的参数 replacement 可以是函数而不是字符串。在这种情况下,每个匹配都调用该函数,它返回的字符串将作为替换文本使用。该函数的第一个参数是匹配模式的字符串。接下来的参数 是与模式中的子表达式匹配的字符串,可以有 0 个或多个这样的参数。接下来的参数是一个整数,声明了匹配在 stringObject 中出现的位置。最后一个参数是 stringObject 本身。 下文展示了几种javascript正则表示式的repalce方式,有些方式我们很少在别的地方看到,如第二种和第三方中方法。 //下面的例子用来获取url的两个参数,并返回urlRewrite之前的真实 阅读全文
posted @ 2010-08-12 10:45 再快一点 阅读(133494) 评论(1) 推荐(4) 编辑
摘要: // 指针.cpp : 定义控制台应用程序的入口点。//#include "stdio.h"void change(int **p1,int **p2){ int *tem; tem=*p1; *p1=*p2; *p2=tem;}void changeNormal(int *p1,int *p2){ int temp=*p1; *p1=*p2; *p2=temp;}void changeErr(int *p1,int *p2){ int *temp; temp=p1; p1=p2; p2=temp; printf("在函数里面:a=%d,b=%d\n",*p1,*p2);}void main 阅读全文
posted @ 2010-08-11 10:30 再快一点 阅读(177) 评论(0) 推荐(1) 编辑
摘要: New Document 阅读全文
posted @ 2010-08-10 22:24 再快一点 阅读(2722) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12 13 14 下一页