dvgis / dc-home-cli Goto Github PK
View Code? Open in Web Editor NEW数字视觉的三维开发平台网站模板,主要包括说明、示例、文档等
Home Page: http://dc.dvgis.cn
数字视觉的三维开发平台网站模板,主要包括说明、示例、文档等
Home Page: http://dc.dvgis.cn
问题描述:在exampes中新增一个自定义demo,无法正确访问加载,报错:Unexpected token '<'。
解决方法:应该是editor文件夹中index.vue,在解析script标签中的正则匹配有误,没有正确匹配到 '</script>',去掉\n换行符; replace(/</?script>\n/g, '') 改为 replace(/</?script>/g, '')就可以正常加载了。
1, 将 dc-sdk-examples 下的内容拷贝并替换 dc-home-cli 下的 public/examples 目录 ;
2,运行npm run serve ,程序运行成功 (http://localhost:8080/)
3, 打开 场景分析-空间测量 示例(http://localhost:8080/#/editor?type=analysis&example=measure),
浏览器控制台报错:TypeError: DC.Measure is not a constructor
4,经过断点调试看,DC.Measure 为undefined,请问是不是dc-sdk中未提交相应的Measure代码?
里面没有文档的源码
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.