मुझे समझ में नहीं आता कि जब आप .show() की एक श्रृंखला करते हैं तो क्या होता है। न ही मैंने यह कोड लिखा है या यहां क्या हो रहा है यह जानने का विचार है। इसलिए यह सवाल है।शो()। अभिभावक()। शो() - यहां क्या चल रहा है?
// Remove favorite category
$(".FavoriteRemove").click(function() {
var cat = $(this).parents(".Category"); //the parent of the clicked item is the category/bundle
var catid = $(this).attr("catid"); //the id tag on the clicked item is the BundleID
$.post($(this).attr("href"), function() { //the href tag is the post URL for adding a favorite
cat.remove(); //here we remove the category/bundle
//*** WHAT IS THIS DOING? v
$(".Category[catid=" + catid + "]").show().parent().show();
//*** NO THAT UP THERE^
if ($(".FavoriteCategories div").length == 0)
$(".FavoriteCategories").hide();
//bindCategories();
});
return false;
});
क्या कोई इसका अर्थ बता सकता है? मुझे पता है कि लक्ष्य आईडी श्रेणी से मेल खाने वाली विशेषता के साथ वर्ग 'श्रेणी' है लेकिन मुझे समझ में नहीं आता कि कार्यों की श्रृंखला का क्या अर्थ है।
धन्यवाद।
+1; मुझे लगता है कि यह भ्रम का स्रोत है। –
+1 धाराप्रवाह इंटरफेस – RichardTheKiwi
बहुत अच्छा स्पष्टीकरण। मेरी तुलना में बहुत अधिक गहन।+1 – user113716