当前位置: 代码迷 >> JavaScript >> javascript 经过变量调用函数
  详细解决方案

javascript 经过变量调用函数

热度:706   发布时间:2012-11-23 22:54:33.0
javascript 通过变量调用函数
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>

  <head>

    <title>MyHtml.html</title>

      

    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">

    <meta http-equiv="description" content="this is my page">

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">

    

    <!--<link rel="stylesheet" type="text/css" href="./styles.css">-->

      <script type="text/javascript">

      function fn(s){

            alert(s);

      }

      function load(name,str){

            name(str);

      }

      </script>

  </head>

  

  <body onload="load(fn,'ok,yes!')">

    This is my HTML page. <br>

  </body>

</html>
  相关解决方案