Loading
Salesforce から送信されるメールは、承認済ドメインからのみとなります続きを読む

JavaScript 'startsWith' method not supported in Internet Explorer 11

公開日: Oct 13, 2022
説明

You may the following error message in browser console while using Internet Explorer 11. 

[Object doesn't support property or method 'startsWith']

This is caused by the use of the JavaScript method 'startsWith' being used in the Aura framework, which is not supported in IE11 any longer:

String.prototype.startsWith()

解決策

To workaround this, you could either use a different browser or implement a polyfill if appropriate.

if (!String.prototype.startsWith) {
    String.prototype.startsWith = function(searchString, position){
      return this.substr(position || 0, searchString.length) === searchString;
  };
}
 There is also a more robust polyfill available on GitHub here, which can be added as a static resource and added as a dependency where needed.
ナレッジ記事番号

000381505

 
読み込み中
Salesforce Help | Article