文章列表
一点验证【版本一】
- 博客分类:
- javascript
<input type='radio' name='fileAttribute' value='A' alt='甲方>甲方
<input type='radio' name='fileAttribute' value='B' alt='丙方'/>丙方
<br>
<input type="text" name="fileType" id="fileType" value=""/>fileType<br>
&l ...
引用 //下在面的代码只能用于 Internet Explorer
//下在面的代码不能用于 Mozilla Firefox
<table id="tableId">
<tr>
<td><input type="text" name="aaa" id="aa" value=""/></td>
</tr>
<tr>
<td>
<select name='b ...
C++基础教程——从问题分析到程序设计(第2版)中地案例代码
#include <iostream>
using namespace std;
int main()
{
char ch;
cout << "Line 1: Enter a string: "; //Line 1
cin.get(ch); //Line 2
cout << endl; //Line 3
cout << "Line 4 ...
主要是对cin,cout之类的一些操纵运算子,比如setfill,setw,setbase,setprecision等等。它是I/O流控制头文 件,就像C里面的格式化输出一样.以下是一些常见的控制函数的:
dec 置基数为10 相当于"%d"
hex 置基数为16 相当于"%X"
oct 置基数为8 相当于"%o"
setfill(c) 设填充字符为c
setprecision(n) 设显示小数精度为n位
setw(n) 设域宽为n个字符
这个控制符的意思是保证输出宽度为n。如:
cou ...
在网上找了N+1久,了解"浏览器窗口关闭"处理。最后用的最多的方法是:
<script language="JavaScript" type="text/JavaScript">
window.onbeforeunload = onbeforeunload_handler;
window.onunload = onunload_handler;
function onunload_handler(){
var warning="谢谢光临"; ...