[quote=引用 9 楼 lz940222 的回复:][quote=引用 8 楼 丶轩 的回复:][quote=引用 7 楼 lz940222 的回复:][quote=引用 5 楼 丶轩 的回复:][quote=引用 3 楼 lz940222 的回复:][quote=引用 1 楼 丶轩 的回复:]没听懂啥意思 建立联系? 前后端交互通过接口额 比如http://xxxx.xxx.xxx/login
[quote=引用 7 楼 lz940222 的回复:][quote=引用 5 楼 丶轩 的回复:][quote=引用 3 楼 lz940222 的回复:][quote=引用 1 楼 丶轩 的回复:]没听懂啥意思 建立联系? 前后端交互通过接口额 比如http://xxxx.xxx.xxx/login
[quote=引用 8 楼 丶轩 的回复:][quote=引用 7 楼 lz940222 的回复:][quote=引用 5 楼 丶轩 的回复:][quote=引用 3 楼 lz940222 的回复:][quote=引用 1 楼 丶轩 的回复:]没听懂啥意思 建立联系? 前后端交互通过接口额 比如http://xxxx.xxx.xxx/login
[quote=引用 5 楼 丶轩 的回复:][quote=引用 3 楼 lz940222 的回复:][quote=引用 1 楼 丶轩 的回复:]没听懂啥意思 建立联系? 前后端交互通过接口额 比如http://xxxx.xxx.xxx/login
[quote=引用 3 楼 lz940222 的回复:][quote=引用 1 楼 丶轩 的回复:]没听懂啥意思 建立联系? 前后端交互通过接口额 比如http://xxxx.xxx.xxx/login
就是我说的额通过接口 比如后端后台有个接口叫查询商品 https://xxxx.xxxx.xxx/searchGoodList 前端通过ajax之类的访问接口 然后得到一串json串 比如: { "returnCode":1, "total":2 "list":[ "good":{"name":"商品1"},"good":{"name":"商品2"} ] } 然后你解析这个json 把内容填充到页面控件就行了,你跟后端交互只需要三样东西 1.请求地址 2.请求需要的参数 3.返回内容如何解析 - - 你这跟后端会不会写有啥关系,完全分离 就是你不需要管后端,他是啥都无所谓
{ "returnCode":1, "total":2 "list":[ "good":{"name":"商品1"},"good":{"name":"商品2"} ] }
[quote=引用 1 楼 丶轩 的回复:]没听懂啥意思 建立联系? 前后端交互通过接口额 比如http://xxxx.xxx.xxx/login
没听懂啥意思 建立联系? 前后端交互通过接口额 比如http://xxxx.xxx.xxx/login
67,549
社区成员
225,860
社区内容
加载中
试试用AI创作助手写篇文章吧