因此,我下载了TinyNav.js,它帮助我处理我的网站菜单,并且不知道如何从"a“标签中获取元素ID。我在一个地方修改了TinyNav.js。
密码就在这里:
我需要帮助处理第61行。
window.location.href = $(this).val();
我把这一行改为
window.location.onClick = (A javascript function call which expects a string)
这种情况下的字符串就是我需要帮助的地方。我需要获得所选的项目ID,但我似乎找不到这样做的方法。这个
$(this).val();
返回我在菜单中单击的选
当我想在我的表中添加一个新行时,我将收到以下错误消息:
ERROR TypeError: Cannot read property 'Nom' of undefined
at Object.eval [as updateDirectives] (MedecinsComponent.html:43)
at Object.debugUpdateDirectives [as updateDirectives] (core.js:36043)
at checkAndUpdateView (core.js:35055)
at callViewAction (core.js