сделал так
myswf.js
function myswf( a , b )
{
function calc( a , b )
{
console.log( "calc" )
return a + b ;
}
return calc( a , b )
}
html
<!DOCTYPE html>
<html>
<head>
<title></title>
<script type="text/javascript" path="myswf.js"></script>
<script>
console.log( myswf( 2 ,4 ) )
</script>
</head>
<body>
</body>
</html>
ошибка :
Цитата:
|
Uncaught ReferenceError: myswf is not defined
|