我正在练习自述文件,我有一个关于链接的问题。有没有办法链接到自述文件的特定部分?例如,我想创建一个目录,其中包含指向 readme.md 文件的特定部分的链接。
# Title
## Sub Title
Brief description of project.
### Table of Content
* [Section 1](#section1)
* [Section 2](#section2)
* [Section 3](#section3)
# Section 1
some text
# Section 2
some text
# Section 3
some text
Run Code Online (Sandbox Code Playgroud)
根据我的理解,我认为这会起作用,但链接不会将我带到这些部分,当我单击它们时,它不会执行任何操作。
是否有一种有效的方法可以从包含字符串字段的列表中获取字符串列表。
即我有客户对象和约会对象
public Customer {
String customerId;
String name;
List<Appointment> appointments;
public String getCustomerId() {return customerId;}
public String getName() {return name;}
public List<Appointment> getAppointments() {return appointments;}
}
public Appointments {
String appointmentId;
String employee;
}
Run Code Online (Sandbox Code Playgroud)
现在,作为客户,我可以有几个不同的约会。如果我只想获得与客户关联的所有约会 ID 的列表怎么办?
类似于 -> customer.getAppointments().getId;?