语义UI Javascript不工作
我刚刚从Bootstrap切换到Semantic UI,开始设计页面,但没有任何与javascript相关的工作(下拉列表、弹出窗口等)。下面是我正在使用的头代码语义UI Javascript不工作,javascript,scala,playframework,semantic-ui,Javascript,Scala,Playframework,Semantic Ui,我刚刚从Bootstrap切换到Semantic UI,开始设计页面,但没有任何与javascript相关的工作(下拉列表、弹出窗口等)。下面是我正在使用的头代码 <link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro:400,700|Open+Sans:300italic,400,300,700' rel='stylesheet' type='text/css'> <link rel="styles
<link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro:400,700|Open+Sans:300italic,400,300,700' rel='stylesheet' type='text/css'>
<link rel="stylesheet" type="text/css" href="@routes.Assets.at("stylesheets/semantic.min.css")">
<link rel="stylesheet" media="screen" href="@routes.Assets.at("stylesheets/main.css")">
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.min.css">
<script src="http://cdnjs.cloudflare.com/ajax/libs/jquery/2.0.3/jquery.js"></script>
<script src="@routes.Assets.at("javascripts/semantic.min.js")"></script>
我对play框架一无所知,所以这只是一个猜测。可能您必须初始化组件(下拉列表等)。至少在使用Meteor.js框架时必须这样做
$('.ui.dropdown').dropdown();
我也有同样的问题——javascript不工作。你弄明白了吗?谢谢Scala和语义用户界面的结合好吗?谢谢