如何查看jquery的逐行执行 [英] How to see line by line exection of jquery

查看:136
本文介绍了如何查看jquery的逐行执行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何逐行执行jquery代码

我有以下代码


$(' 。edit-mode')。hide();
$(' 。edit-user,.cancel-user')。on(< span class =code-string>' click',function(){
var tr = $( this )。parents(' tr:first');
tr.find(' 。edit-mode, .display-mode')。toggle();
});





我是什么尝试过:



我没试过,我也没有任何想法

解决方案

< blockquote>(' 。edit-mode')。hide();


' 。edit-user,.cancel-user')。on(' click',function(){
var tr =


this )。parents(' tr:first');
tr.find(' 。edit-mode,.display-mode')。切换();
});





我尝试过:



我没试过,我也没有任何想法


How to see line by line execution of jquery code 
 
I have below code
 
 
$('.edit-mode').hide();
$('.edit-user, .cancel-user').on('click', function () {
var tr = $(this).parents('tr:first');
tr.find('.edit-mode, .display-mode').toggle();
});



What I have tried:

I didn't tryed i don't have any idea

解决方案

('.edit-mode').hide();


('.edit-user, .cancel-user').on('click', function () { var tr =


(this).parents('tr:first'); tr.find('.edit-mode, .display-mode').toggle(); });



What I have tried:

I didn't tryed i don't have any idea


这篇关于如何查看jquery的逐行执行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆