最后
一个好的心态和一个坚持的心很重要,很多冲着高薪的人想学习前端,但是能学到最后的没有几个,遇到困难就放弃了,这种人到处都是,就是因为有的东西难,所以他的回报才很大,我们评判一个前端开发者是什么水平,就是他解决问题的能力有多强。
开源分享:【大厂前端面试题解析+核心总结学习笔记+真实项目实战+最新讲解视频】
分享一些前端面试题以及学习路线给大家
primaryKey: 'id',
properties: {
id: 'int',
name: 'string',
}
};
const CitySchema = {
name: CityTableName,
primaryKey: ‘city_id’,
properties: {
city_id: ‘int’,
city_name: ‘string’,
}
};
const instance = new Realm({
schema: [
HistorySchema,
CitySchema,
],
deleteRealmIfMigrationNeeded: true,
inMemory: false,
});
/**表使用区**/
export function writeToRealm(obj,tabName) {
return new Promise((resolve, reject) => {
instance.write(() => {
instance.create(tabName, obj, true)
resolve(true)
})
})
}
export function queryAllFromRealm(tabName) {
return new Promise((resolve, reject) => {
let obj = instanc