Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
381 views
in Technique[技术] by (71.8m points)

javascript - 在React JSX中访问引号内的引号(Access props inside quotes in React JSX)

In JSX, how do you reference a value from props from inside a quoted attribute value?(在JSX中,如何从带引号的属性值中引用props值?)

For example:(例如:) <img className="image" src="images/{this.props.image}" /> The resulting HTML output is:(生成的HTML输出是:) <img class="image" src="images/{this.props.image}">   ask by cantera translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

Please log in or register to answer this question.

Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...