• jQuery-点击查看联系方式


     1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
     2 <html xmlns="http://www.w3.org/1999/xhtml">
     3 <head>
     4     <title>其他事件one</title>
     5     <script type="text/javascript" 
     6             src="Jscript/jquery-1.8.2.min.js">
     7     </script>
     8     <style type="text/css">
     9            .btn {border:#666 1px solid;padding:2px;160px;
    10            filter: progid:DXImageTransform.Microsoft.Gradient(GradientType=0,StartColorStr=#ffffff, EndColorStr=#ECE9D8);}
    11     </style>
    12     <script type="text/javascript">
    13         $(function() {
    14             function btn_Click() { //自定义事件
    15                 this.value = "010-12345678"
    16             }
    17             $("input").one("click", btn_Click); //绑定自定义事件
    18         })
    19     </script>
    20 </head>
    21 <body>
    22     <input id="Button1" type="button" value="点击查看联系方式" class="btn" />
    23 </body>
    24 </html>
  • 相关阅读:
    BigDecimal 和NumberFormat及 获取总页数的应用
    格式化小数点和百分号 DecimalFormatter
    Vue 项目开发
    js 对象补充
    Vue 实例成员
    Vue 指令
    Vue 介绍
    Vue
    request-html
    Python 中的经典类新式类
  • 原文地址:https://www.cnblogs.com/longly/p/6597197.html
Copyright © 2020-2023  润新知