Titanium 移动 SDK 不支持 .jss 功能吗 [英] Does .jss feature is not supported in Titanium mobile SDK

查看:34
本文介绍了Titanium 移动 SDK 不支持 .jss 功能吗的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用 .jss.但我不知道为什么它不起作用.我有一个 mywindow.js 文件,我创建了一个 mywindow.jss 文件.

I am trying to use .jss. but i dont know why it is not working. I have a mywindow.js file and i have created a mywindow.jss file.

mywindow.jss 文件中

#b 
{
 width: 40;
 height: 50;
 color: '#324f85';
 font: {fontFamily: 'Helvetica-Bold', fontSize: 15};
}

mywindow.js

var myButton = Titanium.UI.createButton({
id : "b",
title: 'clickME'

});

我不知道我在这里做错了什么.

I dont know what i am doing wrong here.

.js 和 .jss 文件都在同一位置.使用 SDK 1.8.1

Both .js and .jss file are in same location. Using sdk 1.8.1

推荐答案

每当您更改(或创建)任何 JSS 类时,您都需要在样式更改生效之前清理您的项目.

Whenever you change (or create) any JSS classes, you need to clean your project before the style changes come through.

Titanium 菜单栏 > 项目 > 清洁...

Titanium Menu bar > Project > Clean...

这篇关于Titanium 移动 SDK 不支持 .jss 功能吗的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆