变量 mDrawerToggle = new ActionBarDrawerToggle(
this,
mDrawerLayout,
R.drawable.ic_drawer,
R.string.drawer_open,
R.string.drawer_close
) {
@Override
public void onDrawerStateChanged(int newState) {
if (newState == DrawerLayout.STATE_SETTLING) {
if (!isDrawerOpen()) {
// starts opening
getActionBar()
.setNavigationMode(ActionBar.NAVIGATION_MODE_STANDARD);
} else {
// closing drawer
getActionBar()
.setNavigationMode(ActionBar.NAVIGATION_MODE_TABS);
}
invalidateOptionsMenu();
}
}
};
mDrawerLayout.setDrawerListener(mDrawerToggle);
值为sub_product_title
但是当将其设置为隐藏元素值时,我将其设为"Hettich InnoTech Plain Drawer"
答案 0 :(得分:0)
您需要在引号内设置文字。即value="' + sub_product_title + '"
$('.sub-product_add').click(function(e) {
var sub_product_title = $(this).parents('.span6.mb10').children('.span7').children('.sub_product_title').html();
$('#added-cabinets-Base').children('tbody:last').append('<tr><td><span><input type="hidden" value="' + sub_product_title + '" name="item-0"/><a href="#" class="img-hover">' + sub_product_title + '</a><img id="hover-img" src=' + sub_product_img + '></span></td><td><i cla**strong text**ss="fa fa-inr"></i><span class="cal-price">' + sub_product_price + '</span></td><td><i class="fa fa-times-circle"></i></td></tr>');
});