16
rated 0 times
[
22]
[
6]
/ answers: 1 / hits: 39392
/ 12 Years ago, mon, may 7, 2012, 12:00:00
I am trying to learn how to use require.js. So I made an HTML page with the following tags in the body.
<script type=text/javascript data-main=../js/shirt src=../js/require.js></script>
<script type=text/javascript>
alert(Shirt color is + shirt.color);
</script>
The ../js/shirt.js has the following code
define({
color: black,
size : large
});
How can I use this simple value pairs in my html?
More From » requirejs