Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
js中是否有一种聪明的方法来插入混合单引号和双引号,比如python
“““细绳”””
句法?或类似的东西,我相信它们存在于 Perl 或 PHP 中。
不,您被转义引号所困扰。
是的,你必须使用" + string + "或"string"
" + string + "
"string"