JavaScript Tutorial/Global/import
Версия от 18:52, 25 мая 2010; (обсуждение)
import
The import keyword allows a script to import properties, functions, and objects from a signed script that has exported the information.
<html>
<body>
<script language = "JavaScript">
<!--
// imports the variables name, city and state from another script.
// This makes those properties accessible to myObj.
import myObj.name;
import myObj.city;
import myObj.state;
-->
</script>
</body>
</html>