【发布时间】:2015-01-11 08:33:39
【问题描述】:
我正在使用 Oracle MAF 开发移动应用程序。在该应用程序中,我需要实现签名捕获功能。
为此我下载了Signature Capture Demo app from this link。
并尝试与我的应用程序集成。我做了该链接中提到的所有必要设置。 但运行应用程序后,我收到以下错误
TypeError: Object[object Object] 没有方法'signature'
这段代码如下
<![CDATA[
<script type="text/javascript">
(function()
{
makeSig = function() {
try
{
var sigElement = document.getElementById("sig");
if (sigElement == null)
alert("sigElement not found");
var sigJq = $(sigElement);
sigJq.signature();
sigJq.signature({guideline: true});
}
catch (problem)
{
alert("Problem with verbatim code: " + problem);
}
}
window.setTimeout(makeSig, 250);
})();
</script>
<div id="sig" style="height:200px;width:99%"></div>
]]>
请告诉我为什么找不到签名方法。我还在项目中包含了所有必需的.js 文件。
提前致谢。
【问题讨论】:
-
首先尝试了解 jQuery 选择器的工作原理。此链接将帮助您理解。 api.jquery.com/category/selectors
标签: javascript jquery-ui jquery-mobile jquery-plugins oracle-maf