Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/86.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
Javascript 如何在JSFIDLE中使用jQuery签名插件?_Javascript_Jquery - Fatal编程技术网

Javascript 如何在JSFIDLE中使用jQuery签名插件?

Javascript 如何在JSFIDLE中使用jQuery签名插件?,javascript,jquery,Javascript,Jquery,我正在我的演示中实现签名插件。所以我从[这个url][1]下载了这个插件 演示html包含一个类iekbw签名,它不应用于代码中的任何元素。但是,当我以某种方式运行它时,它将应用于给定的div。因此,我搜索了该文件,但没有一行将其应用于div 其次:如何在JSFIDLE中使用jQuery签名插件 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <

我正在我的演示中实现签名插件。所以我从[这个url][1]下载了这个插件

演示html包含一个类ie
kbw签名
,它不应用于代码中的任何元素。但是,当我以某种方式运行它时,它将应用于给定的
div
。因此,我搜索了该文件,但没有一行将其应用于
div

其次:如何在JSFIDLE中使用jQuery签名插件

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<title>jQuery UI Signature Basics</title>
<link type="text/css" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.9.0/themes/south-street/jquery-ui.css" rel="stylesheet">
<link type="text/css" href="jquery.signature.css" rel="stylesheet">
<style type="text/css">
.kbw-signature { width: 400px; height: 200px; }
</style>
<!--[if IE]>
<script type="text/javascript" src="excanvas.js"></script>
<![endif]-->
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.9.0/jquery-ui.min.js"></script>
<script type="text/javascript" src="jquery.signature.js"></script>
<script type="text/javascript">
$(function() {
    $('#sig').signature();
    $('#clear').click(function() {
        $('#sig').signature('clear');
    });
    $('#json').click(function() {
        alert($('#sig').signature('toJSON'));
    });
});
</script>
</head>
<body>
<h1>jQuery UI Signature Basics</h1>
<p>This page demonstrates the very basics of the
    <a href="http://keith-wood.name/signature.html">jQuery UI Signature plugin</a>.
    It contains the minimum requirements for using the plugin and
    can be used as the basis for your own experimentation.</p>
<p>For more detail see the <a href="http://keith-wood.name/signatureRef.html">documentation reference</a> page.</p>
<p>Default signature:</p>
<div id="sig"></div>
<p style="clear: both;"><button id="clear">Clear</button> <button id="json">To JSON</button></p>
</body>
</html>

jqueryui签名基础
.kbw签名{宽度:400px;高度:200px;}
$(函数(){
$('#sig').signature();
$(“#清除”)。单击(函数(){
$('sig')。签名('clear');
});
$('#json')。单击(函数(){
警报($('sig').signature('toJSON');
});
});
jqueryui签名基础
本页演示了
.
它包含使用插件和
可以作为您自己实验的基础

有关更多详细信息,请参见页面

默认签名:

清除到JSON


也许。。在左侧,在“外部资源”中添加url,其中是外部url?您是对的,但其中是外部url。我们可以使用dropboxcheck创建外部url吗?这里是我的主机,所以我将在明天删除这些文件。IR您能告诉我您是如何实现该主机的步骤的吗..您使用过吗?