我xdebug在php.ini文件中启用如下:
[XDebug]
zend_extension = "D:\xampp\php\ext\php_xdebug.dll"
xdebug.profiler_append = 0
xdebug.profiler_enable = 1
xdebug.profiler_enable_trigger = 0
xdebug.profiler_output_dir = "D:\xampp\tmp"
xdebug.profiler_output_name = "cachegrind.out.%t-%s"
xdebug.remote_enable = 0
xdebug.remote_handler = "dbgp"
xdebug.remote_host = "localhost"
xdebug.trace_output_dir = "D:\xampp\tmp"
Run Code Online (Sandbox Code Playgroud)
我的netbeans设置与他们的手册相同.现在,当我尝试Ctrl + F5(在第140行设置断点之后)时,它显示如下:
如何$user_id在netbean的控制台下面看到(或任何其他变量的值)的值?
或者是否有任何方法可以通过在CLI中设置断点和检查变量值来调试PHP代码,如python import pdb;pdb.set_trace()??? 以便代码在特定行中断(当采取像提交表单或重新加载浏览器一样的操作)然后我可以在断点之前甚至continue在断点之后检查每个变量
我想将孟加拉语数字替换为英语数字.如
var bengali = [?,?,?,?,?,?,?,?,?,?];
var eng = [0,1,2,3,4,5,6,7,8,9];
Run Code Online (Sandbox Code Playgroud)
bengali.replace(eng);
所以任何人都可以写任何bengali数字,然后将其转换为英文数字.我怎样才能做到这一点?
我已经在控制器中设置了 flashdata,例如
public function customer() {
$data['title'] = 'Black List Management';
if ($this->input->post('single_black')) {
//echo 'here';return;
$wallet = trim($this->input->post('single_wallet', TRUE));
$reason = trim($this->input->post('reason', TRUE));
$match = preg_match('/^01[15-9]\d{8}$/', $wallet);
//if not valid mobile
if ($match == 0 || !$match) {
$this->session->set_flashdata('message', 'The wallet is not valid Mobile no.');
redirect('blacklist/index');
}
$is_blacklisted = $this->db->where('wallet', $wallet)->where('is_blacklisted', 1)->get('customers')->num_rows();
//if already blacklisted
if ($is_blacklisted > 0) {
$this->session->set_flashdata('message', 'This wallet is already in blacklist');
redirect('blacklist/index');
}
$this->form_validation->set_rules('reason', 'Reason', 'required');
if ($this->form_validation->run() == FALSE) {// if …Run Code Online (Sandbox Code Playgroud) 是否可以将两个或三个列处理(合并)作为一列处理,LIKE并根据需要使用该列中的关键字和ORDER结果进行搜索?
我的专栏
| to_place | from_place | departure_place|
|:-----------|------------:|:------------: |
| Same | Place | Line
| Rangpur | Dhaka | Chittagong
| Badda | bogra | hello
| Shyamoli | rajshahi | mohammadpur
| test | test1 | adabor
| another | test2 | kurigram
Run Code Online (Sandbox Code Playgroud)
所以我想在我的一列中的这3列,SQL以便我可以订购它们
时间结束后如何重新启动活动时钟?
var clock;
$(document).ready(function() {
clock = new FlipClock($('.clock'), 10, {
clockFace: 'Counter',
autoStart: true,
countdown: true
});
});
Run Code Online (Sandbox Code Playgroud)
我想在某种情况下10秒后再次启动计数器。我试过的是
var clock;
$(document).ready(function() {
clock = new FlipClock($('.clock'), 10, {
clockFace: 'Counter',
autoStart: true,
countdown: true,
callbacks: {
stop: function() {
//my custom condition here if(not_free){start showing again}
clock.start();
}
}
});
});
Run Code Online (Sandbox Code Playgroud)
但这没有用。任何的想法?
我是 Vue jS [版本 2] 的新手。我的页面中有 3 个组件。我想使用 axios 获取所有页面中可用的数据。我在我的app.js
const router = new VueRouter({mode: 'history', routes });
Vue.mixin({
data: function () {
return {
pocketLanguages: [],
}
},
mounted() {
var app = this;
axios.get("/get-lang")
.then(function (response) {
app.pocketLanguages = response.data.pocketLanguages;
})
}
})
const app = new Vue({
router,
}).$mount('#app');
Run Code Online (Sandbox Code Playgroud)
并pocketLanguages在像这样的组件中使用它
{{ pocketLanguages.login_info }}这个。它工作正常,但我的问题axios.get('')在页面加载时触发了 4 次 [在控制台中]
现在,如果用示例进行解释,我如何仅触发一次或任何其他建议来执行此操作[因为我是 Vue 新手]
我使用了这个包,但它没有用(https://github.com/barryvdh/laravel-cors)
addSMS() {
axios.post('https://smsmisr.com/api/webapi', {
headers: {
'Access-Control-Allow-Origin': '*',
'Access-Control-Allow-Methods': 'POST, GET, PUT, OPTIONS, DELETE',
'Access-Control-Allow-Headers': 'Access-Control-Allow-Methods, Access-Control-Allow-Origin, Origin, Accept, Content-Type',
'Content-Type': 'application/json',
'Accept': 'application/json'
},
username: '*****',
passowrd: '****',
etc: '',
})
.then(function (response) {
console.log(response);
})
.catch(function (error) {
console.log(error);
});
}
Run Code Online (Sandbox Code Playgroud)
请告诉我如何解决,因为它对我不起作用。
我是 Django 的新手。如何在 Django 模板的 for 循环中连接字符串
{% for lead in project.leaders %}
{% if forloop.counter == 1 %}
{% lead_member = lead.0 %}
{% else %}
{% lead_member = ','.lead.0 %}
{% endif %}
{{ lead_member }}
{% endfor %}
Run Code Online (Sandbox Code Playgroud)
最后我的lead_member应该是test1,test2,test3....
现在发生了什么(我当前的代码)
{% for lead in project.leaders %}
{{ lead.0}}
{% endfor %}
Run Code Online (Sandbox Code Playgroud)
输出是test1test2test3....但我想和test1,test2,test3....