Difference Between Single and Double Quoted Strings in ActionScript

前端 未结 5 1133
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-11 16:53

Is there any difference between single and double quoted strings in ActionScript?

5条回答
  •  长情又很酷
    2020-12-11 17:26

    There is no difference.

    This is from ActionScript: The definitive Guide:

    String is the datatype used for textual data (letters, punctuation marks, and other characters). A string literal is any combination of characters enclosed in quotation marks:

        "asdfksldfsdfeoif"  // A frustrated string
        "greetings"         // A friendly string
        "moock@moock.org"   // A self-promotional string
        "123"               // It may look like a number, but it's a string
        'singles'           // Single quotes are acceptable too
    

提交回复
热议问题