net064
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>testPic</title>
    <script src="IndusJS/jquery.min.js"></script> 
    <script type="text/javascript">function testID(id)
        {
          var itt = id;
          $("#" + itt + "").html(\'传递过来的值\');
        }
    </script>
</head>
<body>
 
        <div id="t1"></div>
        <input type="button" value="测试传递ID值" onclick="testID(\'t1\')" />

</body>
</html>

 

分类:

技术点:

相关文章:

  • 2021-10-12
  • 2021-10-12
  • 2021-11-02
  • 2021-12-15
  • 2021-11-02
  • 2021-10-12
  • 2021-10-12
  • 2021-10-12
猜你喜欢
  • 2021-11-20
  • 2021-10-12
  • 2021-07-22
  • 2021-11-01
  • 2021-07-31
  • 2022-02-16
  • 2021-10-12
相关资源
相似解决方案