比如在一类中有代码如下:  [JsonProperty("on-click")]
        public string OnClick
        {
            get
            {
                return this.onclick;
            }
            set
            {
                this.onclick = value;
            }
        }问题: [JsonProperty("on-click")] 这句有什么作用?    写这个"on-click"有什么依据吗?  谢谢~~

解决方案 »

  1.   

    JsonPropertyAttribute:域和属性修饰标签,用于控制它们如何被序列化为一个json对象中的属性
    JsonConverterAttribute:类,域,属性修饰标签,用于指定序列化期间的转换器
      

  2.   

    en,我试了一下,基本懂了意思。我现在是用 OpenFlashChart做个曲线图表,目前想实现鼠标点击图上的 圆点 执行我的javascript语句,但这个控件的属性只支持类似于"http://....com"这样的网址,怎么办?  wuyq11大哥,怎么办?  帮帮我~~