javascript:是伪协议,表示url的内容通过javascript执行。
void(0)表示不作任何操作,这样会防止链接跳转到其他页面。
这么做往往是为了保留链接的样式,但不让链接执行实际操作,具体的操作交给链接的onclick事件处理
相关文章
- java实现斐波那契数列,现在要求输入一个整数n,请你输出斐波那契数列的第n项。 n public class Solution_feibonaqi { public int Fibonacci(int n) { int result[] = { 0, 1 }; if (n < 2) { return result[n]; } int f0 = 0; int f1 = 1; int f2 = 0; for (int i = 2; i <= n; i++) { f2 = f1 + f0; f0 = f1; f1 = f2; } return f2; } public static void main(String[] args) { Scanner sc = new Scanner; int n = ; Solution_feibonaqi fei = new Solution_feibonaqi; ((n)); } }
- href="#"和javasrcript:void(0)的区别
- JavaScript 怎么快速声明一个数组,长度为 100,元素全是 0?
- 利用YaHoo YUI实现Javascript CSS 压缩 分类: C# 2014-07-13 19:07 371人阅读 评论(0) 收藏
- =0; i--)
{
printf("%d", a[i]);
if(i>0)
printf(" ");
else
printf("\n");
}
return 0;
}
转载于:/6bing/p/
">输入包括两行,第一行是一个正整数N(N
#include<>
int a[1100001];
int pp(int low,int h)
{
int key=a[low];
while(low < h)
{
while(key <= a[h] && low < h) h--;
a[low]=a[h];
while(key >= a[low] && low < h) low++;
a[h]=a[low];
}
a[low]=key;
return low;
}
void paixu(int low, int h)
{
if(low>=h)
return ;
int mid=pp(low,h);
paixu(low,mid-1);
paixu(mid+1,h);
}
int main
{
int i;
int n;
scanf("%d",&n);
for(i=0;i
=0; i--) { printf("%d", a[i]); if(i>0) printf(" "); else printf("\n"); } return 0; } 转载于:/6bing/p/ - Java第三章习题3-7(1到n的阶乘和 /* * To change this template, choose Tools | Templates * and open the template in the editor. */ /** * * @author Administrator */ public class Find { public void main{ int n=9999; int sum=0; int k=1,i=1; for( i=1;i<=10;i++){ k=k*i; sum=sum+k; if(sum>9999){ break; } } (i-1); } } /* * To change this template, choose Tools | Templates * and open the template in the editor. */ /** * * @author Administrator */ public class Test { public static void main(String[] args){ Find f=new Find; ; } }
- 从0学习JavaScript(2)
- javascript 之 location.href、跨窗口调用函数
- 在SharePoint解决方案中使用JavaScript (0)
- ">链接