当我使用我的开发者帐户时,我在Xcode 8中收到此消息.
您的会话已过期.请登录.
使用另一个Apple ID可行.此外,当登录到developer.apple.com时,一切都还可以.我没有问题登录.我怎样才能解决这个问题?
我想在单击子 SPAN 时阻止父级单击。我试过
e.stopPropagation
and thi way
if (!e) e = window.event;
e.cancelBubble = true;
if (e.stopPropagation) e.stopPropagation();
Run Code Online (Sandbox Code Playgroud)
我有像这样的html:
<label for="parent_id"> Some text
<span id="child_id">Click child</span>
</label>
<input id="parent_id" />
Run Code Online (Sandbox Code Playgroud)
父元素的函数
$('#parent_id').click(function (e) { SomeParentCode }
子元素的函数。
$('#child_id').click(function (e) {
e.stopPropagation();
But I what to prevent parent click
SomeChildCode
}
Run Code Online (Sandbox Code Playgroud)