定义模块的方式

1、函数式定义

require.js 下篇

2、定义简单的对象

define({
	username: 'silva',
	name: 'Slilva Zhou',
	email: '[email protected]',
	gerder: '男'
})

 

 

相关文章:

  • 2021-05-19
  • 2022-01-19
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-05-16
  • 2021-07-14
相关资源
相似解决方案