以下代码
public List<Map<String,String>> getPhoneData() {
List<Map<String, String>> mapp = new List<Map<String, String>>();
Map<String, Integer> temp
= new Map<String, Integer>{'type' => 'Profile Value', 'count' => 1};
return mapp;
}
在给我
Compile Error: Invalid value type: String for Integer
在第 3 行
我想Map
用一种价值String
和另一种价值来创造Integer
。怎么做?