var str = 'single words "fixed string of words"';
var astr = str.split(" "); // need fix
Run Code Online (Sandbox Code Playgroud)
我希望数组如下:单个,单词,固定字符串.
我如何获得所有准备好的选定jquery元素内的所有链接(this)
$("#container li").each(function(){
$("this a").each(function(){
// links inside this li element
});
});
Run Code Online (Sandbox Code Playgroud)
这是行不通的另外一种方式吗?