jQuery traverses the subscript, passes in the event, and prevents repeated execution of the event

Residents in East China are accustomed to taking rice as their staple food, and occasionally eating flour, with very few miscellaneous grains. They are good at cooking cakes, rice balls, and the Lantern Festival made of glutinous rice is unique. Study three meals a day, and sometimes "over the middle" or "snack"; usually, most of them are constantly eating meat, and the recipes for holidays are more refined, with meat and vegetarian dishes, and the preparation is dry and thin. Vegetables and fruits are abundant at all times, chicken, duck and fish are not lacking every month, and seafood and game are hobbies"},


Today in Hong Kong, Macao and Taiwan, the diet has evolved from the simple and satisfying food in the past to the pursuit of beauty, flavor, and beauty; restaurants have also changed from simple and shabby to gorgeous decoration; most of them have retained their own national traditional food characteristics. In the Chinese community, Cantonese, Hakka (especially the original residents of the New Territories), Chaoshan and Danjia are the main ones. Therefore, Cantonese cuisine, Hakka cuisine, Chaozhou cuisine, etc. are regarded as local dishes. The dishes range from authentic tastes to delicacies from all over the world, which is enough to reflect the changes in food attitudes and quality of life in Hong Kong, Macao and Taiwan. "},


{"imgUrl":"../img/index/xibei.jpg","title": "Northwest","content":"There are many famous foods in the northwest, and many of them have historical smoke and dust, which are quite ancient. Like Shaanxi The gourd chicken, Shangzhi meat, the money nostiness, the elbow, the beef and mutton steamed buns, the stone buns, the steamed cakes, the oil-splashed noodles, the "Imitation Tang Banquet" and the "Dumpling Banquet"; Gansu's Lily Chicken Shredded, Steamed Pigeon Fish, Lanzhou roast pig, hand-caught mutton, beef noodles, bubble oil cake, a bundle of firewood, Gaotan mutton, "Gongchang Twelve Body" and "Golden Carp Feast"; Qinghai's Cordyceps Snow Chicken, Bee'er Tenderloin, Ginseng mutton tendon, sweet and sour Huangyu, Guomo, sweet grain, horse offal, mutton fried noodles, etc. In addition, here are Xifeng wine, Huanggui thick wine, angelica wine, Longnanchun, Yili special song, wolfberry wine, white wine , Ziyang tea, milk tea, Sanpaotai Babao tea, ginseng tea; black rice drink and cantaloupe juice are also well-known."},
{"imgUrl":"../img/index/xinan.jpg"," title": "Southwest","content":"The climate here is also very complex. There are both subtropical humid monsoon climates, humid zones and subtropical humid monsoon climates. The southwest region is full of vitality and many species. It has always been known as the "Kingdom of Animals" and "Kingdom of Plants", and its cooking resources are inexhaustible. For example, Chongqing and Sichuan have Rongchang pig, Dechang cattle, Jianchang horse, Sichuan yak, and copper sheep. , hemp duck, Yayu, rock carp, Jiang Tuan, peach blossom rice, white beans, sea pepper, pepper, fresh bamboo shoots, mustard, konjac, houttuynia cordata, watercress, tempeh and well salt; Guizhou has fragrant pig, Guanling cattle, Qianxi horse, goat along the river, golden chicken, three ear duck, shiitake mushroom, bamboo fungus, fragrant grass, black glutinous rice, Codonopsis, Dushan pickled sauerkraut and Tongren green powder; Yunnan has Kanglang fish, bow fish, schizothorax, Luohuang, Xuanwei ham, lemongrass, Pu'er tea, ivory mango, elderberry rice, purple rice, chicken brown, tiger palm mushroom, rose head; vegetables, Qujing leek flower and milk fan; Tibet has lean pork, Yadong Salmon, ginseng fruit (fern hemp seeds), Cordyceps sinensis and saffron, etc. These special materials are important components of local special food customs."}
]



for (i in thisdata) {
let add = $(`<div class="ci-box"><img src='${thisdata[i].imgUrl}'><p>${thisdata[i].title}</p><div class="moban moban${i}">${thisdata[i].content}</div></div>`)

add.bind('mouseenter', function(){
$(`.moban${$(this).index()}`).fadeIn()
})
$('.ci-box').mouseleave(function() {
$(`.moban${$(this).index()}`).fadeOut()
})

$('.c-img').append(add)
}

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324980671&siteId=291194637