不后悔
可以看看
http://www.meteor.com这个网站本身就是meteor写的,可以研究研究它的源码:
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="/bd2d08719675fd30e25d1226e5bd6f45258ded11.css">
<script type='text/javascript'>__meteor_runtime_config__ = {"meteorRelease":"follower-11","ROOT_URL":"https://www.meteor.com","ROOT_URL_PATH_PREFIX":"","serverId":"cfL5jBd2A2cQ7bk3G"};</script>
<script type="text/javascript" src="/bfa929bcb9b1e77430e5f44db028fed650586e6f.js"></script>
<meta name="fragment" content="!">
<title>Meteor</title>
<link rel="icon" href="favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
<link rel="image_src" href="screencast.gif" />
<link rel="alternate" type="application/atom+xml" title="Meteor Blog Atom Feed"
href="/blog/atom.xml" />
<meta property="og:image" content="http://meteor.com/screencast.gif" />
<meta name="Description"
content="Meteor is an open-source JavaScript platform for building top-quality web apps in a fraction of the time, whether you're an expert developer or just getting started."/>
<a href="https://plus.google.com/{+104063475472216743156}" rel="publisher" />
<script type="text/javascript">
if (document.location.host.match(/^(www\.)?meteor.com(:80)?$/)) {
// Google analytics.
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-30093278-1']);
_gaq.push(['_setDomainName', 'www.meteor.com']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? '
https://ssl' : '
http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
// Async HubSpot Analytics.
(function(d,s,i,r) {
if (d.getElementById(i)){return;}
var n=d.createElement(s),e=d.getElementsByTagName(s)[0];
n.id=i;n.src='//js.hubspot.com/analytics/'+(Math.ceil(new Date()/r)*r)+'/216776.js';
e.parentNode.insertBefore(n, e);
})(document,"script","hs-analytics",300000);
// Mixpanel
(function(c,a){var b,d,h,e;b=c.createElement("script");b.type="text/javascript";
b.async=!0;b.src=("https:"===c.location.protocol?"https:":"http:")+
'//api.mixpanel.com/site_media/js/api/mixpanel.2.js';d=c.getElementsByTagName("script")[0];
d.parentNode.insertBefore(b,d);a._i=[];a.init=function(b,c,f){function d(a,b){
var c=b.split(".");2==c.length&&(a=a[c[0]],b=c[1]);a[b]=function(){a.push([b].concat(
Array.prototype.slice.call(arguments,0)))}}var g=a;"undefined"!==typeof f?g=a[f]=[]:
f="mixpanel";g.people=g.people||[];h=['disable','track','track_pageview','track_links',
'track_forms','register','register_once','unregister','identify','name_tag',
'set_config','people.set','people.increment'];for(e=0;e<h.length;e++)d(g,h[e]);
a._i.push([b,c,f])};a.__SV=1.1;window.mixpanel=a})(document,window.mixpanel||[]);
mixpanel.init("ccbcd7e4e53fc175e04474e70961cf45");
} else {
mixpanel = null;
}
</script>
</head>
<body>
</body>
</html>
【 在 hopesfish (有理想的咸鱼) 的大作中提到: 】
: 用js生成layout?你会后悔的...
--
修改:nimi FROM 114.244.145.*
FROM 114.244.145.*