简体   繁体   English

如何在PlatonScript字符串中放置双引号

[英]How to place double quotation marks in PlatonScript strings

I need to make my jPlaton unit to return a JSON string (I use it in an AJAX call with jQuery). 我需要使jPlaton单元返回JSON字符串(我在jQuery的AJAX调用中使用了它)。 The proper JSON format dictates using double quotation marks to surround JSON properties. 正确的JSON格式要求使用双引号将JSON属性括起来。 In PlatonScript strings are surrounded by double quotation marks. 在PlatonScript中,字符串用双引号引起来。 Since I cannot escape the double quotation marks inside PlatonScript strings, how do create a valid JSON string with double quotation marks in PlatonScript? 由于我无法在PlatonScript字符串中转义双引号,因此如何在PlatonScript中创建带双引号的有效JSON字符串?

Thank you! 谢谢!

只需尝试在双引号之前使用反斜杠()

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM