工作中常用的一些javascript的小技巧

1、windouws里面弹出对话框

 

Windows.confirm(您确定要删除此号码吗?= =true)

Frm.submit;

 

2、去掉链接的下划线、边框和颜色

 

<style type="text/css">

<!--

   a:link { text-decoration: none;color: #000000}

   a:active { text-decoration:none;color:#000000}

   a:hover { text-decoration:none;color: #000000}

   a:visited { text-decoration:none;color: #000000}

-->

</style>

 

3、防止恶意的跨站点脚本录入

 

<ww:property value="custGrpInitiative.promptCnt" escape="true"/>

 

4、空格符

 

&nbsp;

 

5、javascript中的字体大小和颜色的表示

 

th.innerHTML = '<font size="2" color="#FFFFFF"><span class="style2">'+"操作"+'</span></font>';

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值