-2

在“ var ApplicationConfig = {" and " ApplicationForm: { submitUrl: validateFieldUrl:processWindowUrl:rejectedUrl:”工作怎么样

<script type="text/javascript">
    var ApplicationConfig = {
        mobile: false,
        messages: {"account_number_format_error":"4-30 digits are needed in the field &quot;Account Number&quot;"},
        ApplicationForm: {
            submitUrl: 'application-submit.php',
            validateFieldUrl: 'application-validate-field.php',
            processWindowUrl: 'application-process.php',
            rejectedUrl: 'page-reject.php'
        },
        multipartTextfieldContainer: '.dev-form-multipart-text-field',
        autocomplete: {
            url: 'application-autocomplete.php'
        },
        abTestValues: {"igf_frm_small":"1"}    };
</script>
4

1 回答 1

0

那是一个对象字面量。

它是一种在定义属性和值的同时构造基本对象的方法。

var foo = { bar: baz; };

相当于:

var foo = new Object();
foo.bar = baz;
于 2013-02-12T09:22:45.610 回答