猿问

像这样的方法是怎么写的,或者告诉下,这样的技术叫什么?

@(Html.Kendo().Map()
.Name("map")
.Center(50.000, 0)
.Zoom(2)
.Layers(layers =>
{
layers.Add()
.Style(style => style
.Fill(fill => fill.Color("#1996E4"))
.Stroke(stroke => stroke.Color("#FFFFFF"))
)
.Type(MapLayerType.Shape)
.DataSource(dataSource => dataSource
.GeoJson()
.Read(read => read.Url(Url.Content("~/Content/countries-sales.geo.json")))
);
})
.Events(events => events
.ShapeCreated("onShapeCreated")
.ShapeMouseEnter("onShapeMouseEnter")
.ShapeMouseLeave("onShapeMouseLeave")
.ShapeClick("onShapeClick")
)
.Zoomable(false)
)

德玛西亚99
浏览 142回答 2
2回答

DIEA

这个是第三方控件MVC控件,由控件厂商定制出来的。是原生MVC框架的扩展。

慕莱坞森

这是一种使用扩展实现链式编程语法。 你上面的Kendo().Map().Name(). 第一个都是一个方法,就象你类里面自己写的方法
随时随地看视频慕课网APP
我要回答