Files
2024-09-27 02:06:13 +08:00

73 lines
1.1 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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