var myDoc = {
documents : {
html:result //HTML拼接字符串变量
}, // 打印页面(div)们在本文档中
copyrights : '杰创软件拥有版权 www.jatools.com' // 版权声明必须
};
var jcp = getJCP(); //这一行正常
jcp.printPreview(myDoc, false); //报错了如下
jcp-vue.js?653a:23 Uncaught SyntaxError: Unexpected token p in JSON at position 0
at parse (<anonymous>)
at eval (jcp-vue.js?653a:23)
at Object.sOYKB (jcp-vue.js?653a:23)
at Object.fhlRG (jcp-vue.js?653a:23)
at XMLHttpRequest._0xd0c594.<computed> (jcp-vue.js?653a:23)