问题描述
我是超级菜鸟,所以我可能无法为您提供足够的信息来纠正我的问题。如果我错误地提出了一个问题,请随时向我指出。
我正在尝试制作一个SVG画布,允许用户在图像上绘制矩形。在裸HTML中,它可以正常工作。但是,如果我按以下方式放入SurveyJS的HTML元素,则绘图功能(JavaScript)无法正常工作。
<body>
<script src="{{ url_for('static',filename='js/app.js') }}"></script> # It's drawing on SVG function.
Survey
.StylesManager
.applyTheme("modern");
// Your response will help the research to improve the neighborhood's environment!
var json = {
"pages": [
"name": "image_showing","elements": [
{
"type": "html","name": "Image","width": "1010","html": '<h3>Preview of images</h3><img id="myimage" src="img.jpg"/><svg id="mysvg"></svg>' # svg is here.
}]
</body>
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)