first commit

This commit is contained in:
编码猿
2024-09-27 02:06:13 +08:00
commit 852d94fbb9
36760 changed files with 3274413 additions and 0 deletions

View File

@@ -0,0 +1,72 @@
1:
vue.js uniapp 一套代码转换为多套不同平台的代码
AST抽象语法树
{
name: '张珊',
fun : {alert(1)}
}
function 张珊() {alert(1)}
代码转换成语法树(json数据结构)
{
name: '张珊',
fun : {alert(1)}
}
pulic void 张珊() {
}
混合App 非android之一 开发:
原生App (android开发的app)
1: webview(android原生组件) + h5 套壳
2: uniapp android 原生 和 H5 混合
<webview src="http://www.baidu.com"></webview>
android
js
uni.addPhoneContact({
nickName: '昵称',
lastName: '姓',
firstName: '名',
remark: '备注',
mobilePhoneNumber: '114',
weChatNumber: 'wx123',
success: function () {
console.log('success');
},
fail: function () {
console.log('fail');
}
});
function addPhoneContact(obj) {
addPhoneContact_Android(obj)
}
android
public string addPhoneContact_Android(obj) {
obj // 数据处理
// 调用android系统底层方法
xxxx.add(obj)
}
3react navitereactflutterui dart
Text ===> TextView
p