TypeScriptã§è¤æ°ãã¡ã¤ã«æ§æã®ããã¸ã§ã¯ããæ±ãæ¹æ³ã«ã¤ãã¦æ¸ãã¦ã¿ããæ¥æ¬èªã®å ¥éè¨äºã試ãã¦ã¿ã¾ããç³»ã®è¨äºã§åéãããã¦ããã¨ããã¾ã«è¦åããããã®ã§ãæ´çãã¦ã¿ãã å ¬å¼ã®Modules in TypeScriptãæ¢ã«èªãã§ãããããããªå¾¡ä»ã¯åãå³ãã¦ããã ãã¦ãçµæ§ã§ãã ããããã㨠ã½ã¼ã¹ãã¡ã¤ã«ãã¢ã¸ã¥ã¼ã«ãã¨ã«åå²ãã¦ç®¡çããã å®è¡ç°å¢ã¯Node.js or ãã©ã¦ã¶ ä¾ãã°ãããããå¦çããã£ã¦ã // main.ts function trimLeft(str: string): string { return str.replace(/^\s+/, ''); } var input = document.getElementsByTagName('input')[0]; input.value = trimLeft(input.value); tri
{{#tags}}- {{label}}
{{/tags}}