$post_data="dispnumber=567567567&extension=6";
$url="http://xxxxxxxx.xxx/xx/xx";
Run Code Online (Sandbox Code Playgroud)
我需要发布这个$post_data使用cURL php with header application/x-www-form-urlencoded
我是新的curl任何一个帮助这个.
这是我的代码:
<script type="text/javascript">
$(document).ready(function(){
$('.toAdd').hide();
$('#add').click(function () {
var i = 0;
$('.toAdd').each(function () {
if ($(this).show()) {
i++;
}
});
});
});
</script>
<div id=add><input type="button" value="click"/>
</div>
<div id="toAdd">
<label>1</label>
</div>
<div id="toAdd">
<label>2</label>
</div>
<div id="toAdd">
<label>3</label>
</div>
<div id="toAdd">
<label>4</label>
</div>
Run Code Online (Sandbox Code Playgroud)
在此代码中,我需要为每个点击事件一个一个显示div,但它不起作用?