小编Mar*_*roe的帖子

将Bootstrap模板添加到MeteorJS

我有一个来自https://wrapbootstrap.com/的Bootstrap主题,我想在我的MeteorJS应用程序中使用它.问题是它有脚本标签,如:

<!--[if !lte IE 6]><!-->
    <!-- Link to Google CDN's jQuery + jQueryUI; fall back to local -->
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js"></script>
    <script>window.jQuery || document.write('<script src="js/libs/jquery.min.js"><\/script>')</script>
    <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
    <script>window.jQuery.ui || document.write('<script src="js/libs/jquery.ui.min.js"><\/script>')</script>

    script src="http://maps.google.com/maps/api/js?sensor=true" type="text/javascript"></scrip>
                                                                                    <!-- RECOMMENDED: For (IE6 - IE8) CSS3 pseudo-classes and attribute selectors -->
    <!--[if lt IE 9]> 
        <script src="js/include/selectivizr.min.js"></script>                   
    <![endif]-->

    <script src="js/libs/jquery.ui.touch-punch.min.js"></script>                <!-- REQUIRED:  A small hack that enables the use of touch events on mobile -->
Run Code Online (Sandbox Code Playgroud)

添加到MeteorJS时不起作用.我知道标签不起作用,但你如何将这个设计的页面添加到MeteorJS?

稍后编辑:

我添加了script src="http://maps.google.com/maps/api/js?sensor=true" type="text/javascript"></script>以上内容.以上所有脚本都添加在<body>.该 …

templates twitter-bootstrap meteor

11
推荐指数
1
解决办法
8792
查看次数

在Scala的Mockito对象

我正在使用Scala 2.10,specs2和Mockito.我想模拟scala.io.Source.fromURL().问题似乎是fromURL()是io.Source对象中的一个函数.

val m = mock[io.Source]
m.fromURL returns io.Source.fromString("Some random string.")
Run Code Online (Sandbox Code Playgroud)

这是单元测试中非常简单的模拟.为什么不工作?

谢谢!

scala object mockito

11
推荐指数
2
解决办法
1万
查看次数

标签 统计

meteor ×1

mockito ×1

object ×1

scala ×1

templates ×1

twitter-bootstrap ×1