使用RequireJS时,下面这个三个参数怎么理解?_,Shi,Tuan三个参数代表什么意思?
define(['require','echarts', '../dataComponent', '../../util/helper','./shi', './tuan','../../mapGeo/xinjiang'],
function (require, Echarts, DataComponent, _, Shi, Tuan) {
var geoCoordMap = _.extend(true,{
'北京': [116.4551,40.2539],
'兵团': [87.9236,43.5883]
}, Shi, Tuan);
var config = {
lineMinWidth:1,
lineMaxWidth:4,
lineWidthRate:100,
specialLineWidth:6,
lineSpeed:6,
topLevelName:'兵团',
yellowArrow: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAUCAYAAABBECfmAAABS2lUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4KPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxMzggNzkuMTU5ODI0LCAyMDE2LzA5LzE0LTAxOjA5OjAxICAgICAgICAiPgogPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIi8+CiA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgo8P3hwYWNrZXQgZW5kPSJyIj8+IEmuOgAAARtJREFUKJFd0TtuVDEYxfGf7zxIZgQITRcESBELoGUPrIVtsJE09KyDLiWi4CE0QlHIPHKvPbZp7CDxdf7+PsdHx2F3tQ5Y4hwLnDBimrfFBi/wFEd8w3bACq+Wm4v369dvPp1dXH7AJVYdvpw/fvZOCIvZ6slbPMf5gEfYGIYl1Jzum2A2YI6zEIY5lBQPmJAHBAza1DTtscf0sOxTUtxih/hPGcIMapy+N+UDrEIIkMfDVxyQum2GWvJUT/EX7nug2tKpabrBbYO1w1EtqaT4E3/65W57R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tuan三个参数代表什么意思
var geoCoordMap = _.extend(true,{
'北京': [116.4551,40.2539],
'兵团': [87.9236,43.5883]
}, Shi, Tuan);
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
_应该指的是loadsh。
后面的shi和tuan应该是用来填充数据的基础数据,类似默认config,大概是师,团的意思?
【突然觉得这个问题有点危险。。】