使用
调用jSignaturevar hiddenSignature = $('#signature' + i).jSignature();
hiddenSignature.jSignature('setData', 'base30' + signatureContentBase30);
给出此错误
jSignature.min.js:57 Uncaught Error: jSignature is unable to find import plugin with for format 'undefined'
at r.fn.init.f (jSignature.min.js:57)
at r.fn.init.$.fn.(formso365.nintex.com/Pages/anonymous function) [as jSignature] (https://progressivehomecare.sharepoint.com/sites/intakeworkflow-dev/SiteAssets/ScriptLibraries/jSignature.min.js:61:18)
at HTMLDivElement.<anonymous> (registerSignatureFields.js:49)
at Function.each (jquery-1.10.2.min.js:4)
at init.each (jquery-1.10.2.min.js:4)
at HTMLDocument.<anonymous> (registerSignatureFields.js:23)
at c (jquery-1.10.2.min.js:4)
at Object.add [as done] (jquery-1.10.2.min.js:4)
at init.ready (jquery-1.10.2.min.js:4)
at registerSignatureFields.js:14
使用此代码
var hiddenSignature = $('#signature' + i).jSignature();
hiddenSignature.jSignature('setData', 'data:image/jsignature;base30,' + signatureContentBase30);
我得到了错误
jSignature.min.js:65 Uncaught TypeError: Cannot read property 'split' of undefined
at v (jSignature.min.js:65)
at u (jSignature.min.js:65)
at HTMLCanvasElement.r (jSignature.min.js:66)
at r.fn.init.f (jSignature.min.js:57)
at r.fn.init.$.fn.(formso365.nintex.com/Pages/anonymous function) [as jSignature] (https://progressivehomecare.sharepoint.com/sites/intakeworkflow-dev/SiteAssets/ScriptLibraries/jSignature.min.js:61:18)
at HTMLDivElement.<anonymous> (registerSignatureFields.js:49)
at Function.each (jquery-1.10.2.min.js:4)
at init.each (jquery-1.10.2.min.js:4)
at HTMLDocument.<anonymous> (registerSignatureFields.js:23)
at c (jquery-1.10.2.min.js:4)
我不知道要尝试什么,这是我第一次使用jSignature(从其他人那里接手)
答案 0 :(得分:0)
假设您正在谈论http://www.unbolt.net/jSignature/
使用
$('#signature').jSignature('getData', 'default')
这将创建如下内容:
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABm0AAAGbCAYAAAAm8dSlAAAc1klEQVR4nO3deZ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