使用包含引号和其他标记的 flashvar?
我可以做些什么来使 flashvar 可以包含任何类型的标点符号而不破坏 html 代码吗?就像某种包围括号之类的东西?现在,如果我尝试包含一些带有引号的长字符串或可能在代码中具有某种含义的其他字符,那么它往往会将其解释为代码而不是字符串。有什么我可以做的吗?
Is there something I can do to make it so that a flashvar can contain any sort of punctuation and not break the html code? Like some sort of encompassing brackets or something? Right now if I try to include some long strings that have quote marks or other characters that could have some sort of meaning in the code, then it tends to interpret it as code rather than a string. Anything I can do?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我从来没有尝试过做这样的事情,但是在谷歌上的快速搜索给了我这个链接:
http://www.mail-archive.com/[email protected]/msg02600.html
也许你应该尝试一下 JS 中的encodeURIComponent()方法。
有关该方法的更多信息:
http://www.w3schools.com/jsref/jsref_encodeURIComponent.asp
I have never tried doing something like this, but a quick search on Google gave me this link:
http://www.mail-archive.com/[email protected]/msg02600.html
Maybe you should give a go to the encodeURIComponent() method in JS.
More about the method:
http://www.w3schools.com/jsref/jsref_encodeURIComponent.asp
Rob