我正在尝试使用SELECT Name, MAX(Size) - MIN(Size) AS Diff
FROM mytable
GROUP BY Name
HAVING COUNT(*) = 2
注入Facebook pixel
代码。
我无法找到直接的方法,因此遵循以下方法。但是,我收到语法错误。
jQuery
我在var t = "!function (f, b, e, v, n, t, s) { if (f.fbq) return; n = f.fbq = function () {n.callMethod ? n.callMethod.apply(n, arguments) : n.queue.push(arguments)}; if (!f._fbq) f._fbq = n;n.push = n; n.loaded = !0; n.version = '2.0' ; n.queue = []; t = b.createElement(e); t.async = !0;t.src = v; s = b.getElementsByTagName(e)[0]; s.parentNode.insertBefore(t, s)}(window,document, ; n.queue = []; t = b.createElement(e); t.async = !0;t.src = v; s = b.getElementsByTagName(e)[0]; s.parentNode.insertBefore(t, s)}(window,document, 'script','https://connect.facebook.net/en_US/fbevents.js');fbq('init', '274827424829492');fbq('track', 'SomePage');";
$('<script>').attr('type', 'text/javascript').text(t).appendTo('head');
答案 0 :(得分:0)
错误在于连接的字符串。下面是正确的字符串。
var t = "!function (f, b, e, v, n, t, s) { if (f.fbq) return; n = f.fbq = function () {n.callMethod ? n.callMethod.apply(n, arguments) : n.queue.push(arguments)}; if (!f._fbq) f._fbq = n;n.push = n; n.loaded = !0; n.version = '2.0'; n.queue = []; t = b.createElement(e); t.async = !0;t.src = v; s = b.getElementsByTagName(e)[0]; s.parentNode.insertBefore(t, s)}(window,document, 'script','https://connect.facebook.net/en_US/fbevents.js');fbq('init', '3535353535355');fbq('track', 'SomePage');";