zoukankan      html  css  js  c++  java
  • CH03_07.mxml CH03_09.mxml两个文本框自动绑定

     CH03_07.mxml

    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
                  xmlns:s="library://ns.adobe.com/flex/spark" 
                  xmlns:mx="library://ns.adobe.com/flex/mx">
      <s:Group>
        <s:layout>
          <s:HorizontalLayout/>
        </s:layout>
        <s:TextInput id="myTextInput1" text="{myTextInput2.text}"/>
        <s:TextInput id="myTextInput2" text="{myTextInput1.text}"/>
      </s:Group>
    </s:Application>

     另外一种方法绑定CH03_09.mxml

    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
                  xmlns:s="library://ns.adobe.com/flex/spark" 
                  xmlns:mx="library://ns.adobe.com/flex/mx">
      <s:layout> 
        <s:HorizontalLayout/> 
      </s:layout>               
      <fx:Binding source="myTextInput1.text" 
                  destination="myTextInput2.text" 
                  twoWay="true"/> 
      <s:TextInput id="myTextInput1"/>
      <s:TextInput id="myTextInput2"/>    
    
    </s:Application>
  • 相关阅读:
    Jmeter属性和变量
    用trie树解决最大异或对问题(On)
    trie树
    kmp算法
    数学归纳法
    单调栈和单调队列
    区间合并
    离散化
    位运算
    双指针算法
  • 原文地址:https://www.cnblogs.com/ffmpeg/p/4364867.html
Copyright © 2011-2022 走看看