📜  自动完成 onchange - 任何代码示例

📅  最后修改于: 2022-03-11 15:00:07.730000             🧑  作者: Mango

代码示例1
`import React from 'react';
 import MuiAutocomplete from 'mui-autocomplete';
 const cities = [
 {
   id: 1,
   name: "Alabama",
   code: "AL"
 },
 {
   id: 2,
   name: "Alaska",
   code: "AK"
 },
 {
   id: 3,
   name: "American Samoa",
   code: "AS"
 }];
 function Home () {
   return (
     
); }`