我想将数组转换为逗号分隔的字符串。
我的数组
array:2 [
0 => array:1 [
"name" => "streaming"
]
1 => array:1 [
"name" => "ladies bag"
]
]
Run Code Online (Sandbox Code Playgroud)
我想要结果 streaming,ladies bag
我想从左到右,然后从上到下连续移动我的div位置.
首先移动我的代码停止.
请检查https://jsfiddle.net/LLqmL33p/
function placeDiv(x_pos) {
var d = document.getElementById('boxed');
d.style.position = "absolute";
d.style.left = x_pos+'px';
setTimeout(function(){ placeDiv2(10); }, 1000);
}
function placeDiv2(y_pos) {
var d = document.getElementById('boxed');
d.style.position = "absolute";
d.style.top = y_pos+'px';
setTimeout(function(){ placeDiv(15); }, 1000);
}
placeDiv(10);
Run Code Online (Sandbox Code Playgroud)
我不明白我现在能做什么?