Home
Sign Up
Sign In
V2EX
›
问与答
toastr 的 toastr.options 自定义设置应该写在哪里?
qcloud
·
Nov 20, 2016
· 2027 views
This topic created in 3667 days ago, the information mentioned may be changed or developed.
http://codeseven.github.io/toastr/demo.html
需要一些自定义的样式,但是不知道在哪里调用这个设置,是调用一个文件吗?还是直接在源代码中写?
toastr
调用
options
定义
3 replies
•
2016-11-21 16:53:08 +08:00
stiekel
Nov 21, 2016
1
1
先在项目里引用 toastr 的主文件,然后调接使用 toastr.option 就行了。
qcloud
OP
Nov 21, 2016
2
@
stiekel
然后调接使用 toastr.option 就行了,这个 toastr.option 是需要写在每个 toastr 后面吗?
stiekel
Nov 21, 2016
1
3
@
qcloud
不用,全局有效。
About
·
Help
·
Advertise
·
Blog
·
API
·
FAQ
·
Privacy
·
Solana
·
1045 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 24ms ·
UTC 18:35
·
PVG 02:35
·
LAX 10:35
·
JFK 13:35
♥ Do have faith in what you're doing.
❯