Ionic 3: Getting value from PlayStore link
问题 I have an Ionic 3 app and I want to set some variable inside it based on the download link from Playstore. For example, http://linktoplaystore.com/app?account=4 would set the account variable inside my app to be 4. Is there any way to achieve this? 回答1: You can do this in code by parsing and defining an array private urlParameters: Array<any> = []; if (YOURURLVARIABLE.indexOf("?") > 0) { let splitURL = document.URL.split("?"); let splitParams = splitURL[1].split("&"); let i: any; for (i in