多个连续出版物,附有多个部分。 [英] Multiple serials with multiple parts attached to it.

查看:65
本文介绍了多个连续出版物,附有多个部分。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿所有人,


我希望有人可以解释我能做到的最佳方式。

i对我如何能有一些想法关于这个,但我不确定它是否会起作用。


现在我有一个表格,你可以添加和删除多个串行信息。这很棒。但是现在对于我添加的每个序列信息,我需要能够添加和删除该序列的多个部分。


继承人的一个例子我的意思


序列信息1

部件1

部件2


序列信息2

零件1

零件2


如果其中一个串行信息被删除,所有与之相关的零件也必须能够也可以随身携带。因此,如果有人能够解释这样做的最佳方式,我将非常感激。这是我目前拥有的代码。这允许你添加多个连续剧。

Hey Everyone,

Well i was hoping someone could explain the best way i could go about this.
i have a few ideas on how i could go about this but i am just not sure if it would work.

Right now i have a form where you can add and delete multiple serial information. This works wonderful. But now for every serial information i add i need to be able to add and remove multiple parts to that serial.

heres an example of what i mean

serial information 1
parts 1
parts 2

serial information 2
parts 1
parts 2

The thing is if one of the serial information''s gets deleted all the parts associated with it also have to be able to be removed with it as well. So if anyone could explain the best way to do this i would very much appreciate it.Here is the code i currently have for it. This allows you to add multiple serials.

展开 | 选择 | Wrap | 行号

推荐答案

添加serial div,所以当你删除div时,其中的所有内容都会被删除,包括部分。
Add the parts within the serial div, so when you remove the div everything within it is deleted including the parts.



在序列div中添加部分,所以删除div时,其中的所有内容都将被删除,包括部分。
Add the parts within the serial div, so when you remove the div everything within it is deleted including the parts.



Hey Acoder,


好​​吧,我正在插入一个不只是试图显示零件。我插入的方式我不喜欢div之间的任何东西

Hey Acoder,


Well the thing is i am inserting an not just trying to display the parts. An the way i am inserting i don''t have anything between the div like so

展开 | 选择 | Wrap | 行号


I意味着将部件添加到串行div中,就像使用serial一样(附加到dynamicInput)。如果您想单独添加和删除部件,可以创建两个类似于连续出版物的功能。
I meant to add the parts to the serial div as you''ve done with serial (appending to dynamicInput). If you want to add and remove parts individually, you can create two functions similar to what you have for serials.


这篇关于多个连续出版物,附有多个部分。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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