1

如何在 Solidity 上使用开箱即用的 JavaScript 提供的字符串模板文字?

我需要在我的 ERC20 中写一个多行字符串,并且想利用一些不需要我写一堆的东西/n

IE

const myLongAndMultiLineVariable = `

1- Chicken picanha cow ham tongue beef ribs flank prosciutto jerky pork chop leberkas shoulder. 

2- Pork chop jowl meatloaf andouille swine buffalo prosciutto brisket. Biltong filet mignon 

3- chislic. Salami boudin sirloin pork belly short ribs pastrami swine bacon.

`

我是这个领域的新手,一个显示输出的代码示例(字符串的样子)将不胜感激。

4

0 回答 0