我有Link to="some_url"
,当我将鼠标悬停时,它会显示一些文本,但在移动版本中,用户无法将其悬停,因此我需要执行类似'first click: shows text like hover'
和'second click follow the link'
的操作>
<SlickSlider {...sliderSettings}>
{[1, 2, 3, 4, 5].map(item => (
<Link
key={item}
to={...}
onClick={handleCloseModal}
>
{children}
</Link>
))}
</SlickSlider>
答案 0 :(得分:1)
我想我即将回答您的问题或回答您的所有疑问。我不精通JavaScript。非常抱歉可能出现的错误,但是我希望该源代码可以正常工作。
React.JS源代码:
import os
def split(filehandler, delimiter=',', row_limit=1000,
output_name_template='output_%s.csv', output_path='.', keep_headers=True):
import csv
reader = csv.reader(filehandler, delimiter=delimiter)
current_piece = 1
current_out_path = os.path.join(
output_path,
output_name_template % current_piece
)
current_out_writer = csv.writer(open(current_out_path, 'w'), delimiter=delimiter)
current_limit = row_limit
if keep_headers:
headers = reader.next()
current_out_writer.writerow(headers)
for i, row in enumerate(reader):
if i + 1 > current_limit:
current_piece += 1
current_limit = row_limit * current_piece
current_out_path = os.path.join(
output_path,
output_name_template % current_piece
)
current_out_writer = csv.writer(open(current_out_path, 'w'), delimiter=delimiter)
if keep_headers:
current_out_writer.writerow(headers)
current_out_writer.writerow(row)
如果您有任何问题,请就此提问。