TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

How to: code JavaScript using Twitter bootstrap best practices

45 点作者 baptou12大约 11 年前

5 条评论

usablebytes大约 11 年前
A cleaner way to convert a function declaration into a function expression would be to use brackets<p><pre><code> (function() { &#x2F;&#x2F;code here })(); </code></pre> This won&#x27;t affect the return type of the statement; which in case of using ! will return boolean &#x27;true&#x27; unless the function returns a truthy value. Plus using ! for this purpose, looks totally messy.
评论 #7698845 未加载
评论 #7699493 未加载
评论 #7699253 未加载
评论 #7698465 未加载
bpizzi大约 11 年前
FYI, the blog post suggests that bootstrap is currently developped at twitter, which is not the case anymore @see <a href="http://getbootstrap.com/about/" rel="nofollow">http:&#x2F;&#x2F;getbootstrap.com&#x2F;about&#x2F;</a>
评论 #7716137 未加载
DrinkWater大约 11 年前
&quot;The ! converts the function declaration to a function expression&quot; .... and i closed the tab
评论 #7698089 未加载
评论 #7698052 未加载
评论 #7698076 未加载
edfuh大约 11 年前
protip: you will have a better time if you read this as satire.
myhf大约 11 年前
Oh my, this isn&#x27;t satire.