minYear 和 maxYear 属性,yearNavigationEnabled属性
示例:


代码:

 

<?xml version="1.0" encoding="utf-8"?>
<!-- http://blog.flexexamples.com/2007/12/17/setting-a-minimum-and-maximum-allowable-year-in-the-flex-datefield-control/ -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
        layout
="vertical"
        verticalAlign
="top"
        backgroundColor
="white">

    
<mx:DateField id="dateField"
            yearNavigationEnabled
="true"
            minYear
="2000"
            maxYear
="2010" />

</mx:Application>

相关文章:

  • 2021-05-19
  • 2022-12-23
  • 2021-12-12
  • 2022-12-23
  • 2022-01-12
  • 2021-06-24
  • 2021-11-20
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-07-07
  • 2021-12-22
  • 2022-12-23
  • 2021-12-04
相关资源
相似解决方案