按下laravel黄昏的键盘

时间:2017-11-21 04:54:36

标签: laravel laravel-dusk

在laravel dusk中,如何输入文字并按下输入键盘?

enter image description here

我的输入字段需要按下输入键盘才能在那里添加多个项目

1 个答案:

答案 0 :(得分:2)

mapSportsToUser() {
    const sports = ['a', 'b', ... 'z']//pseudo data
    const user = ['b', 'c'] //we should only show sport c and c
    return (
        <container> //not needed in 15.5+ I think
        { sports.map( (sport, sportIndex) => ( //this will generate one title for each sport
            <title>{sport.name}</title>

            //your second map iterates over the list...
            //(probably not the easiest way to do this but it should work)
            { user.map( (sportUser, userIndex) => {
                if (sportUser == sport) {
                    return <participate />  
                } else {
                    return null //don't render anything
                }
            } }
        )) }
        </container>
    )
}

希望这会对你有所帮助