小编use*_*228的帖子

托管Angular 2应用程序

我是新手Angular 2,我知道托管Angular 1.x在共享主机上GoDaddy,但我不知道如何发布Angular 2应用程序,例如我有这个结构文件夹:

angular2-quickstart

--app
  app.component.ts
  main.ts

--node_modules

--typings

index.html
package.json
styles.css
systemjs.config.js
tsconfig.json
typings.json
Run Code Online (Sandbox Code Playgroud)

我需要在ftp上传什么文件?

我没有尝试任何东西因为我不知道如何继续
提前谢谢!

javascript hosting node.js angularjs angular

11
推荐指数
2
解决办法
2万
查看次数

如何获得 PreferenceFragment 的价值

我有这个代码:

<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
    <CheckBoxPreference android:key="notification_settings"
        android:text="@string/impostazione"
        android:id="@+id/save_check"
        android:summary="@string/notification_title"
        android:defaultValue="false"

        ></CheckBoxPreference>

</PreferenceScreen>
Run Code Online (Sandbox Code Playgroud)

现在我需要在 FragmentA 中获取复选框值:

sharedPreferences = PreferenceManager.getDefaultSharedPreferences(getActivity());
Run Code Online (Sandbox Code Playgroud)

现在?

java android sharedpreferences android-studio

5
推荐指数
2
解决办法
3082
查看次数