跳转到内容
View in the app

A better way to browse. Learn more.

彼岸论坛

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
欢迎抵达彼岸 彼岸花开 此处谁在 -彼岸论坛

[程序员] 关于自己做一个笔记网站(涉及到中英文翻译)

发表于

关于自己做一个笔记网站(涉及到中英文翻译)的想法:

	1 、能够显示中文,也能显示英文,这个显示包括如下几种情况:
	
		1 、整个页面可以全部显示为中文,也可以全部显示为英文
			这个都比较简单,数据库中分两个字段就行,分别存储中英文数据就行。
			这是我能想到的方案,有没有大佬更好的方案。
			
			
		2 、逐句翻译,也就是说页面中每一段有一个按钮或者是一个 hover ,
			一触发就显示英文,或者是中文进行切换。
			这样的话数据库就有点难搞了,我有一个想法是搞成 json 数据,按每段组织文章结构
			比如
				[
				{
					"段号":"1",
					"英文:"test",
					"中文":”测试",
				}
				....
				
			]
			
			但是这有一个性能问题
			还有一种涉及方案是分表:
			1 、文章表
			2 、文章分段表,通过文章 id 关联查出来,然后组装起来
			有大佬有其他方案吗
			
		
		3 、笔记功能
			可以记笔记,这个句子中有什么语法,有什么单词,发音需要注意什么
			
		4 、不经过跳转逐句修改翻译内容和笔记内容
			xhr 就行,但是有大佬知道有没有现成的前端显示模板吗
     
     

 
            
            
我的诉求:

1 、有没有大佬有一个好的数据库设计方案

2 、有没有一个好的前端项目,能够不专门设计一个后台系统去编辑前台页面,前端通过权限控制就能给用户赋予能否编辑的权限,有点所见即所得,又能实时编辑的功能

Featured Replies

No posts to show

创建帐户或登录来提出意见

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.