我可以在Spotfire页面创建一个Javascript但是我不知道如何添加CSS文件。
有什么建议吗?
答案 0 :(得分:2)
这未经Spotfire工程部门批准,但您可以使用JQuery注入托管在运行Spotfire的计算机(因此,您的本地计算机或Web播放器节点)可访问的地方的CSS:
configure:3309: checking for libhsail-rt support
configure:3321: result: yes
configure:4038: checking for gcc
configure:4054: found /usr/bin/gcc
configure:4065: result: gcc
configure:4294: checking for C compiler version
configure:4303: gcc --version >&5
gcc (Ubuntu 7.2.0-8ubuntu3) 7.2.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
configure:4314: $? = 0
configure:4303: gcc -v >&5
configure:4314: $? = 1
configure:4303: gcc -V >&5
configure:4314: $? = 1
configure:4303: gcc -qversion >&5
configure:4314: $? = 1
configure:4334: checking for C compiler default output file name
configure:4356: gcc conftest.c >&5
cc1: fatal error: conftest.c: Permission denied
compilation terminated.
configure:4360: $? = 1
configure:4397: result:
configure: failed program was:
configure:4403: error: in `/home/richter/sources/gcc-7.2.0':
configure:4407: error: C compiler cannot create executables
See `config.log' for more details.
所以只需将它放入文本区域内的JS中即可!
需要注意的一件事是文件将被缓存,您可能希望更新代码,如:
$('head').append('<link rel="stylesheet" href="path/to/stylesheet.css" type="text/css" />');
这会将当前时间戳附加到样式表的URL,以确保每次都获得新的副本。建议只在你修改CSS之前这样做。