在线观看不卡亚洲电影_亚洲妓女99综合网_91青青青亚洲娱乐在线观看_日韩无码高清综合久久

鍍金池/ 問答/ Java問答
雨蝶 回答

你的Mysql表類型是 innodb 還時 myisam 后者是不支持事務(wù)的

真難過 回答

一個異步一個同步
第一個是要執(zhí)行方法返回一個promise組件要在then中獲取
第二個直接導(dǎo)入組件模塊

凹凸曼 回答

node開發(fā)服務(wù)器端的話,不如用go或java,后者都有比較合適的分布式組件。而且穩(wěn)定和性能都是經(jīng)過考驗的。

話寡 回答

3種方案
1、反射
2、正則,如:https://github.com/jilieryuyi... (純文件分析生成文檔,就是基于正則表達(dá)式的)
3、開源項目 https://www.phpdoc.org/

玩控 回答

你觀察一下名字 sendRedirectsetStatus. send是發(fā)送, sendRedirect會直接將響應(yīng)發(fā)送給用戶, 所以你后續(xù)在設(shè)置響應(yīng)的狀態(tài)碼已經(jīng)沒用了, 響應(yīng)已經(jīng)發(fā)回給客戶端了.

爛人 回答

似乎無需用json再次解析, 直接將數(shù)據(jù)賦予一個字典變量, 即可使用.

data={'forward_from_chat': None, 'migrate_to_chat_id': None, 'invoice': None, 'text': u'1', 'sticker': None, 'from_user': {'username': u'bamboo_lee', 'first_name': u'bamboo', 'last_name': u'lee', 'is_bot': False, 'language_code': u'en', 'id': 471214291}, 'caption_entities': None, 'delete_chat_photo': None, 'migrate_from_chat_id': None, 'new_chat_members': None, 'video': None, 'left_chat_member': None, 'chat': {'username': None, 'first_name': None, 'last_name': None, 'description': None, 'title': u'123', 'photo': None, 'pinned_message': None, 'sticker_set_name': None, 'all_members_are_administrators': True, 'invite_link': None, 'type': u'group', 'id': -264835065, 'can_set_sticker_set': None}, 'group_chat_created': None, 'new_chat_photo': None, 'forward_date': None, 'entities': None, 'location': None, 'photo': None, 'author_signature': None, 'document': None, 'forward_from': None, 'supergroup_chat_created': None, 'edit_date': None, 'pinned_message': None, 'content_type': 'text', 'successful_payment': None, 'date': 1514370687, 'new_chat_member': None, 'voice': None, 'reply_to_message': None, 'venue': None, 'message_id': 159, 'caption': None, 'contact': None, 'channel_chat_created': None, 'video_note': None, 'audio': None, 'new_chat_title': None}

print data['from_user']['is_bot']

output

False
愛礙唉 回答

1.通過地址欄參數(shù)傳遞
2.通過localstorage,sessionStorage等技術(shù)
跳轉(zhuǎn)前記得攜帶參數(shù)就行了

//https://mail.qq.com/cgi-bin/frame_html?sid=EJs87usyg4jSZy51&t=newwin_frame&url=%2fcgi-bin%2freadmail%3fmailid%3dZC1927-zkXnZWC5bWY8MnsgobyyP87%26need_textcontent%3dtrue%26s%3dnotify%26newwin%3Dtrue%26t%3dreadmail&r=9f2c2de4f4d1a5acaa0109db8fadf7cd

function getQueryString(name) {
var reg = new RegExp('(^|&)' + name + '=([^&]*)(&|$)', 'i');
var r = window.location.search.substr(1).match(reg);
if (r != null) {
return unescape(r[2]);
}
return null;
}

getQueryString('sid')
"EJs87usyg4jSZy51"

圖片描述

礙你眼 回答

問題找到了,就是在mac下面編譯成linux GOOS=linux GOARCH=amd64

黑與白 回答

自己已經(jīng)搞好了,怎么沒有人回答!

柚稚 回答

出了IDE的設(shè)置,還要確定spring的包在不在class path里,如果是Maven項目或者gradle項目,有沒有添加spring的依賴

尛憇藌 回答

pw_operator_mark怎么找到屬于自己的tv_operator_mark?tv.post是異步吧

青裙 回答

目前看到有:

  • 使用idea自帶的html預(yù)覽功能(這個功能和實際部署到服務(wù)器上的效果相同)。前端需要依賴后端做同源處理防止跨域。
  • 使用nodejs的express服務(wù)器。這塊就是完全的nodejs做法,前端實際上也是有后臺代碼,頁面調(diào)用前端服務(wù),然后前端服務(wù)調(diào)用后端服務(wù)。
憶往昔 回答

你說的很好,也提出了解決方案(根據(jù)不同的文件組合進行緩存)。

你提到“既然某些必要的靜態(tài)資源是需要同步加載的”,如果要實現(xiàn)這種打包,加個配置也能實現(xiàn)(類似 webpack)。

從設(shè)計角度來說,這東西加在這兒會導(dǎo)致前后端結(jié)合太緊密(現(xiàn)在不是都追求前后端分離嘛)。

不二心 回答

應(yīng)該是默認(rèn)支持的是 HTML ,.html 沒有支持 freemarker 語法,參考下 jetBrains 文檔


clipboard.png

這個操作比較有毒,在 設(shè)置中的 file types -》 free marker 下增加 *.html ,確認(rèn),然后會提示與 HTML 下的沖突,然后確認(rèn)保存,這樣 .html 文件就按照 freemarker 的類型走了。。。

陌顏 回答

1.webpack-dev-server = express/koa + webpack-dev-middleware + webpack-hot-middleware
2.webpack/hot/dev-server配置在entry里,其實最后是打包在瀏覽器里加載運行的,作為客戶端和webpack-hot-middleware交互
3.應(yīng)該是不管哪種方式,客戶端都需要webpack/hot/dev-server的
4.可參看https://zhuanlan.zhihu.com/p/...

墻頭草 回答

ScheduledExecutorService在使用schedule提交定時任務(wù)時會返回一個ScheduledFuture<?>,可以調(diào)用它的cancel方法。
代碼如下。

import org.junit.Test;

import java.util.concurrent.*;

/**
 * Created by fanxian
 * datetime on 2017/11/11 16:41.
 */
public class ScheduledExecutorServiceTest {

    @Test
    public void t1() throws InterruptedException {
        ScheduledExecutorService scheduledExecutorService = Executors.newScheduledThreadPool(5);

        System.out.println("創(chuàng)建5秒延遲的任務(wù)");
        ScheduledFuture<?> schedule = scheduledExecutorService.schedule(new Runnable() {
            @Override
            public void run() {
                doTask("5s");
            }
        }, 5, TimeUnit.SECONDS);

        Thread.sleep(4900);

        schedule.cancel(false);
        System.err.println("取消5秒延遲的任務(wù)");

        System.out.println();

        System.out.println("創(chuàng)建3秒延遲的任務(wù)");
        ScheduledFuture<?> schedule2 = scheduledExecutorService.schedule(new Runnable() {
            @Override
            public void run() {
                doTask("3s");
            }
        }, 3, TimeUnit.SECONDS);

        Thread.sleep(4000);

    }

    private void doTask(String arg) {
        System.out.println(arg + " 任務(wù)執(zhí)行 ");
    }
}
她愚我 回答

FAIL_SYS_TOKEN_EMPTY 令牌為空。需要登錄吧?