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

查看:88
本文介绍了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 Menu bar > Project > Clean...

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

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