可能重复:
如何在JavaScript中解析JSON
我得到这样的字符串
[["1","Pagamento de Placa","N","N"], ["2,""Contrato","N","N"], ["3","Ajuste de preço","N","N"],["4", "Abertura de cliente","N","N"], ["9","Outros","N","S"]]
Run Code Online (Sandbox Code Playgroud)
我试试
var arr = new Array([["1","Pagamento de Placa","N","N"], ["2,""Contrato","N","N"], ["3","Ajuste de preço","N","N"],["4", "Abertura de cliente","N","N"], ["9","Outros","N","S"]]);
Run Code Online (Sandbox Code Playgroud)
但不行
我想变成一个真正的数组,任何想法怎么办?
谢谢
似乎即使在添加Config params以启用YouTube和Vimeo Iframe之后,我仍然会收到异常错误."不支持元素'iframe'[..]"
return array(
'encoding' => 'UTF-8',
'finalize' => true,
'preload' => false,
'settings' => array(
'default' => array(
'HTML.Doctype' => 'XHTML 1.0 Strict',
'HTML.Allowed' => 'blockquote,div,b,strong,i,em,a[href|title],ul,ol,li,p[style],br,span[style],img[width|height|alt|src]',
'CSS.AllowedProperties' => 'font,font-size,font-weight,font-style,font-family,text-decoration,padding-left,color,background-color,text-align',
"HTML.SafeIframe" => 'true',
"URI.SafeIframeRegexp" => "%^(http://|https://|//)(www.youtube.com/embed/|player.vimeo.com/video/|api.soundcloud.com/tracks/)%",
'AutoFormat.AutoParagraph' => true,
'AutoFormat.RemoveEmpty' => true,
),
),
Run Code Online (Sandbox Code Playgroud)