Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

有關web api建立起來後的疑問 #7

Open
AlanHuang1998 opened this issue Oct 1, 2019 · 3 comments
Open

有關web api建立起來後的疑問 #7

AlanHuang1998 opened this issue Oct 1, 2019 · 3 comments

Comments

@AlanHuang1998
Copy link

你好,
感謝建立這份教學,使我獲益良多
想請問一下,在webapi建立起來之後,他應該算是個html網頁,除了基本的crud之外,有沒有什麼辦法能對網頁做一些像javascript、ajax之類的事情呢?

@twtrubiks
Copy link
Owner

@AlanHuang1998 現在比較多都前後端分離了, 舉的例子, 後端用 DRF 弄 api , 前端可能用 vus.js 其他的前端框架串api.
當然, django 也可以寫前端, 或是前後端都寫再 Django. 如下舉例,
https://github.com/twtrubiks/DRF-dataTable-Example-server-side

@AlanHuang1998
Copy link
Author

了解,因為我對網頁及web api這部分算是新手,所以不太了解相關資訊
想請問一下如果要把前端連結上這個DRF的api的話該如何串呢?

@twtrubiks
Copy link
Owner

後端 drf 提供 api , 前端把它串起來這樣而已,建議你可以 google了解一下。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants