Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ember.js/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何将JQuery插件添加到UIWebview?_Jquery_Ios_Ipad_Uiwebview_Gantt Chart - Fatal编程技术网

如何将JQuery插件添加到UIWebview?

如何将JQuery插件添加到UIWebview?,jquery,ios,ipad,uiwebview,gantt-chart,Jquery,Ios,Ipad,Uiwebview,Gantt Chart,我想知道如何将jQuery插件()添加到UIWebView中,因为我想用它显示甘特图 请告诉我是否有我应该遵循的教程或步骤 谢谢,卡尼什卡。可以有一个.html文件,如- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/19

我想知道如何将jQuery插件()添加到UIWebView中,因为我想用它显示甘特图

请告诉我是否有我应该遵循的教程或步骤


谢谢,卡尼什卡。

可以有一个
.html
文件,如-

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>TITLE</title>

<script type="text/javascript" src="Plugin.js"></script>
<link type="text/css" href="Plugin.css" rel="stylesheet"/>    
</head>
<body>
<div id="Pluginwrapper">

<div id="Plugincontainer"></div>    
</div>
</body>
</html>

我已将下载的jquery.ganttView文件夹添加到应用程序的Resources目录中。然后创建“sample.html”文件,并将所有插件文件添加到“复制包资源”中。但模拟器什么也不显示!。我是不是遗漏了什么?你收到编译器警告了吗?嗯,你在
src中给出的路径=“jquery.ganttView.js
似乎不合适。路径是相对的,因此我建议您首先尝试将应用程序包中的所有文件(即XCode ide的左栏)放在同一个文件夹中,而不是放在Resorse应用程序沙盒中。另外,请选中No Ishank。我没有收到任何编译器警告,只是没有显示任何内容。我从github下载了jquery.GantView(甘特图插件),并更改了如下代码,以及webview代码以加载html文件。以下是源代码()
[webView loadRequest:[NSURLRequest requestWithURL:[NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:@"htmlfile" ofType:@"html"] isDirectory:NO]]];