且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

带有引导程序的 jquery 的脚本顺序

更新时间:2023-12-05 08:09:04

哦,是的,现在我很抱歉.你必须先加载你的实际 jquery,否则 UI 也不会工作.所以这应该是头部

oh yeah now i see sorry. You have to load your actual jquery first, else UI won't work either. So this should be the head

<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script> 
<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.8.9/jquery-ui.min.js" type="text/javascript"></script> 
<script src="/bootstrap/js/bootstrap.min.js"></script> 
<script src="/js/slider_input.js"></script>

<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.9/themes/base/jquery-ui.css" type="text/css" media="all" />
<link href="/bootstrap/css/bootstrap.min.css" rel="stylesheet" media="screen">

同样在 html5 中你需要去掉 'type="text/javascript"',就像引导程序一样,也是一致的,所以如果你在另一个上有它,也把它添加到引导程序中,它必须做加载规则.

Also in html5 you need to leave off the 'type="text/javascript"', like the bootstrap one, also be consisten, so if you have it on the other, also add it to the bootstrap, it has to do with loading rules.