js代码:
<html>
<body>
<script>
static var i =1;
alert(1);
</script>
</body>
</html> 因为static用错, 所以alert根本不会执行。
php代码:
<?php
static $str = "Hello world";
echo $str;
?> 代码OK.
js代码:
<html>
<body>
<script>
static var i =1;
alert(1);
</script>
</body>
</html> 因为static用错, 所以alert根本不会执行。
php代码:
<?php
static $str = "Hello world";
echo $str;
?> 代码OK.