javascript中使用ajax演示
[ 2011-04-12 14:44:09 | 作者: admin ]
统计打印次数
<a href="#rh" onClick="javascript:{ doprint();}"><font color="#ff3333">点击打印优惠券</font></a>
<script language="javascript" type="text/javascript">
var request = false;
try {
request = new XMLHttpRequest();
} catch (trymicrosoft) {
try {
request = new ActiveXObject("Msxml2.XMLHTTP");
} catch (othermicrosoft) {
try {
request = new ActiveXObject("Microsoft.XMLHTTP");
...<a href="#rh" onClick="javascript:{ doprint();}"><font color="#ff3333">点击打印优惠券</font></a>
<script language="javascript" type="text/javascript">
var request = false;
try {
request = new XMLHttpRequest();
} catch (trymicrosoft) {
try {
request = new ActiveXObject("Msxml2.XMLHTTP");
} catch (othermicrosoft) {
try {
request = new ActiveXObject("Microsoft.XMLHTTP");
阅读全文…
1