<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>js framework template</title>
<script src="https://cdn.bootcss.com/jquery/1.9.1/jquery.js"></script>
var
_jq=window.jQuery,
_base=window.base,
_version='1.0',
AXCHJS={
add:function(msg){
alert(msg);
},
version:_version,
};
window.axchjs=AXCHJS;
})(window);
$(function(){
alert(axchjs.version);
});
<body>
</body>
</html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>js framework template</title>
<script src="https://cdn.bootcss.com/jquery/1.9.1/jquery.js"></script>
<script>
(function(window,undefined){var
_jq=window.jQuery,
_base=window.base,
_version='1.0',
AXCHJS={
add:function(msg){
alert(msg);
},
version:_version,
};
window.axchjs=AXCHJS;
})(window);
$(function(){
alert(axchjs.version);
});
</script>
</head><body>
</body>
</html>