📜  Cordova-config.xml文件

📅  最后修改于: 2020-12-09 05:30:33             🧑  作者: Mango


config.xml文件是我们可以更改应用程序配置的地方。在上一个教程中创建应用程序时,我们设置了反向域名和名称。可以在config.xml文件中更改这些值。当我们创建应用程序时,还将创建默认配置文件。

配置XML默认

下表说明了config.xml中的配置元素。

config.xml配置表

S.No Element & Details
1

widget

The app reverse domain value that we specified when creating the app.

2

name

The name of the app that we specified when creating the app.

3

description

Description for the app.

4

author

Author of the app.

5

content

The app’s starting page. It is placed inside the www directory.

6

plugin

The plugins that are currently installed.

7

access

Used to control access to external domains. The default origin value is set to * which means that access is allowed to any domain. This value will not allow some specific URLs to be opened to protect information.

8

allow-intent

Allows specific URLs to ask the app to open. For example, will allow tel: links to open the dialer.

9

platform

The platforms for building the app.