|
[其他]
onclick事件点击时更改样式无效
[复制链接]
在onclick点击事件里修改样式,当不用api.openFrame()时正常,但当使用时样式无效果;代码如下:active是样式
- <td tapmode="active" onclick="fn()">{{=it.student_detail[i].score}}</td>
- function fn(){
- api.parseTapmode();
- api.openFrame({
- name: 'testStudentsCompleteDetail',
- url: './testStudentsCompleteDetail.html',
- rect: {
- x: 10,
- y: 62,
- w: api.winWidth-18,
- h: api.winHeight-120
- },
- pageParam: {
- userid:userid,
- task_id:api.pageParam.task_id,
- file_name: api.pageParam.file_name,
- class_name:class_name,
- name:name,
- number:number
- },
- bounces: true,
- bgColor: 'rgba(0,0,0,0)',
- vScrollBarEnabled: true,
- hScrollBarEnabled: true
- });
- };
复制代码
|
|