我在字符串中编写了json代码,我希望使用xmlhttp作为.json文件发送它.是否有可能用blob做到这一点?
var cleanScript = {
'type': 'script',
'api_key': api_key,
'data': data,
'inputs': inputs,
'timeoutSeconds': timeoutSeconds
};
var jsonse = JSON.stringify(cleanScript, null, 2);
Run Code Online (Sandbox Code Playgroud)
现在json到blob?
如何更改每个元素,但最后一个元素保持原样?
jQuery(".diaryevent .field-name-field-category .field-items .field-item a")
.each(function(e)
{
var text = jQuery(this).text();
jQuery(this).html(text + ',');
});
Run Code Online (Sandbox Code Playgroud)
我需要添加eg not(":last-child")或:not(:last-child)