尝试学习魏比克斯 (以及javascript )。通常的做法是在正文的末尾加载javascript库。
webix快速启动医生说:
<!DOCTYPE HTML>// specifies document type
<html>
<head>
<link rel="stylesheet" href="../../codebase/webix.css" type="text/css">
<script src="../../codebase/webix.js" type="text/javascript"></script>
</head>
<body>它把图书馆装进了脑袋里。
问题:
webix库加载到<head>中。jQuery和twitter bootstrap发布于 2015-03-21 05:53:55
您可以将webix.js放在页面的任何位置。只需确保在加载webix.js后使用使用webix.js的JS代码。
通常,脚本会放在HTML文件的末尾,因为它们只会向页面添加一些交互性。在Webix的情况下,如果没有webix.js,您将根本看不到页面上的任何内容,因此将webix.js放在页面末尾没有好处。
至于jQuery -如果您计划使用webix-jquery集成,则需要在加载jQuery后加载jQuery(在文件的开头或文件末尾,这并不重要)。
发布于 2018-07-13 06:15:09
您需要遵循以下语法或过程来使用webix。
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Title</title>
<link href="https://fonts.googleapis.com/css?family=Lato|Open+Sans:300|Raleway|Roboto" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"
/>
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons" />
<link rel="stylesheet" href="http://cdn.webix.com/edge/webix.css" type="text/css">
<link rel="stylesheet" type="text/css" href="assets/css/app.css" />
</head>
<body>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="http://cdn.webix.com/edge/webix.js" type="text/javascript"></script>
<script type="text/javascript" charset="utf-8" >
webix.ui({
view:"calendar",
id:"calendar1"
})
</script>
</body>
</html>任何依赖项都必须加载到顶级webix.js上,以便您可以在JS文件中使用它们。
https://stackoverflow.com/questions/29176892
复制相似问题